long-form, AI social, copywriter, prompt config

This commit is contained in:
ajaysi
2024-05-19 14:03:16 +05:30
parent 2499852452
commit b431bfcbd8
6 changed files with 197 additions and 117 deletions

View File

@@ -210,7 +210,7 @@ def check_llm_environs():
def check_internet():
try:
response = requests.get("http://www.google.com", timeout=20)
response = requests.get("http://www.google.com", timeout=5)
if not response.status_code == 200:
print("💥🤯 WTFish, Internet is NOT available. Enjoy the wilderness..")
exit(1)
@@ -253,6 +253,7 @@ if __name__ == "__main__":
f"web_research_report_{datetime.now().strftime('%Y-%m-%d_%H-%M-%S')}")
os.environ["IMG_SAVE_DIR"] = os.path.join(os.getcwd(), "lib", "workspace")
os.environ["CONTENT_SAVE_DIR"] = os.path.join(os.getcwd(), "lib", "workspace")
os.environ["PROMPTS_DIR"] = os.path.join(os.getcwd(), "lib", "workspace", "prompts")
load_dotenv(Path('.env'))
app()