Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,11 +3,10 @@ import agentops, os
|
|
3 |
|
4 |
from crew import get_financial_trading_crew
|
5 |
|
6 |
-
AGENTOPS_API_KEY
|
7 |
|
8 |
agentops.init()
|
9 |
|
10 |
-
|
11 |
def invoke(openai_api_key, serper_api_key, stock_selection, initial_capital, risk_tolerance, trading_strategy_preference, news_impact_consideration):
|
12 |
if (openai_api_key == ""):
|
13 |
raise gr.Error("OpenAI API Key is required.")
|
|
|
3 |
|
4 |
from crew import get_financial_trading_crew
|
5 |
|
6 |
+
AGENTOPS_API_KEY = os.environ["AGENTOPS_API_KEY"]
|
7 |
|
8 |
agentops.init()
|
9 |
|
|
|
10 |
def invoke(openai_api_key, serper_api_key, stock_selection, initial_capital, risk_tolerance, trading_strategy_preference, news_impact_consideration):
|
11 |
if (openai_api_key == ""):
|
12 |
raise gr.Error("OpenAI API Key is required.")
|