Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,11 +8,11 @@ from crewai_tools import ScrapeWebsiteTool, SerperDevTool
|
|
8 |
import gradio as gr
|
9 |
import os
|
10 |
|
11 |
-
os.environ["SERPER_API_KEY"] = os.
|
12 |
|
13 |
search_tool = SerperDevTool()
|
14 |
scrape_tool = ScrapeWebsiteTool()
|
15 |
-
llm=ChatOpenAI(model="gpt-4o-mini", openai_api_key =os.
|
16 |
|
17 |
data_analyst_agent = Agent(
|
18 |
role="Data Analyst",
|
@@ -175,7 +175,7 @@ financial_trading_crew = Crew(
|
|
175 |
execution_planning_task,
|
176 |
risk_assessment_task],
|
177 |
|
178 |
-
manager_llm=ChatOpenAI(model="gpt-4o-mini", openai_api_key =os.
|
179 |
full_output =True,
|
180 |
process=Process.hierarchical,
|
181 |
verbose=True
|
|
|
8 |
import gradio as gr
|
9 |
import os
|
10 |
|
11 |
+
os.environ["SERPER_API_KEY"] = os.getenv('SERPER_API_KEY')
|
12 |
|
13 |
search_tool = SerperDevTool()
|
14 |
scrape_tool = ScrapeWebsiteTool()
|
15 |
+
llm=ChatOpenAI(model="gpt-4o-mini", openai_api_key =os.getenv('OPENAI_API_KEY'), temperature=0.7)
|
16 |
|
17 |
data_analyst_agent = Agent(
|
18 |
role="Data Analyst",
|
|
|
175 |
execution_planning_task,
|
176 |
risk_assessment_task],
|
177 |
|
178 |
+
manager_llm=ChatOpenAI(model="gpt-4o-mini", openai_api_key =os.getenv('OPENAI_API_KEY'), temperature=0.7),
|
179 |
full_output =True,
|
180 |
process=Process.hierarchical,
|
181 |
verbose=True
|