bstraehle commited on
Commit
1662731
1 Parent(s): 08c0a32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -3,11 +3,10 @@ import agentops, os
3
 
4
  from crew import get_financial_trading_crew
5
 
6
- AGENTOPS_API_KEY=<YOUR_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.")