Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,15 +4,14 @@ import streamlit as st
|
|
| 4 |
import pandas as pd
|
| 5 |
|
| 6 |
# Set API keys
|
| 7 |
-
os.environ['OPENAI_API_KEY'] = '
|
| 8 |
-
os.environ['SERPAPI_API_KEY'] = '
|
| 9 |
|
| 10 |
# Define the directory name for saving CSV files
|
| 11 |
SAVE_DIR = 'saved_csv_files'
|
| 12 |
|
| 13 |
# Ensure the save directory exists
|
| 14 |
-
|
| 15 |
-
os.makedirs(SAVE_DIR)
|
| 16 |
|
| 17 |
# Define the functions for your workflow
|
| 18 |
def industry_research(company_name, industry_name):
|
|
@@ -84,4 +83,4 @@ def main():
|
|
| 84 |
st.warning("Please enter both a company name and an industry name.")
|
| 85 |
|
| 86 |
if __name__ == "__main__":
|
| 87 |
-
main()
|
|
|
|
| 4 |
import pandas as pd
|
| 5 |
|
| 6 |
# Set API keys
|
| 7 |
+
os.environ['OPENAI_API_KEY'] = 'YOUR_OPENAI_API_KEY'
|
| 8 |
+
os.environ['SERPAPI_API_KEY'] = 'YOUR_SERPAPI_API_KEY'
|
| 9 |
|
| 10 |
# Define the directory name for saving CSV files
|
| 11 |
SAVE_DIR = 'saved_csv_files'
|
| 12 |
|
| 13 |
# Ensure the save directory exists
|
| 14 |
+
os.makedirs(SAVE_DIR, exist_ok=True)
|
|
|
|
| 15 |
|
| 16 |
# Define the functions for your workflow
|
| 17 |
def industry_research(company_name, industry_name):
|
|
|
|
| 83 |
st.warning("Please enter both a company name and an industry name.")
|
| 84 |
|
| 85 |
if __name__ == "__main__":
|
| 86 |
+
main()
|