WIP - Streamlit UI, firecrawl - V0.5

This commit is contained in:
ajaysi
2024-06-12 17:12:19 +05:30
parent f2aa79264e
commit bebca6612d
6 changed files with 11 additions and 4 deletions

View File

@@ -301,11 +301,11 @@ def main():
</div>
""", unsafe_allow_html=True)
# Export the paths and file names. Dont want alwrity to be chatty and prompt for inputs.
os.environ["SEARCH_SAVE_FILE"] = os.path.join(os.getcwd(), "lib", "workspace", "web_research_report",
os.environ["SEARCH_SAVE_FILE"] = os.path.join(os.getcwd(), "lib", "workspace", "alwrity_web_research",
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", "generated_content")
os.environ["CONTENT_SAVE_DIR"] = os.path.join(os.getcwd(), "lib", "workspace", "generated_content")
os.environ["PROMPTS_DIR"] = os.path.join(os.getcwd(), "lib", "workspace", "prompts")
os.environ["IMG_SAVE_DIR"] = os.path.join(os.getcwd(), "lib", "workspace", "alwrity_content")
os.environ["CONTENT_SAVE_DIR"] = os.path.join(os.getcwd(), "lib", "workspace", "alwrity_content")
os.environ["PROMPTS_DIR"] = os.path.join(os.getcwd(), "lib", "workspace", "alwrity_prompts")
os.environ["ALWRITY_CONFIG"] = os.path.join(os.getcwd(), "lib", "workspace", "alwrity_config", "main_config.json")
# Check API keys and LLM environment settings

View File

@@ -0,0 +1,2 @@
Alwrity main config file. All the values from the UI sidebar are saved in this file.
The programs read these values from this file, depending on their logic.

View File

@@ -0,0 +1,2 @@
Alwrity will be place all final content drafts in this folder, like blog content, articles, texts and images generated.
Change location in alwrity.py or environment variable SEARCH_SAVE_FILE

View File

@@ -0,0 +1,3 @@
Alwrity web research reports will be saved in this folder.
You can change this by modifying SEARCH_SAVE_FILE environment variable, after running alwrity.py from the command prompt.
Better to change in the alwrity.py file itself, line no: 308