bstraehle commited on
Commit
058357a
1 Parent(s): be4f5c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -14,7 +14,11 @@ def invoke(openai_api_key, serper_api_key, topic):
14
  os.environ["OPENAI_API_KEY"] = openai_api_key
15
  os.environ["SERPER_API_KEY"] = serper_api_key
16
 
17
- agentops.init(os.environ["AGENTOPS_API_KEY"])
 
 
 
 
18
 
19
  return get_crew().kickoff(inputs={"topic": topic})
20
 
 
14
  os.environ["OPENAI_API_KEY"] = openai_api_key
15
  os.environ["SERPER_API_KEY"] = serper_api_key
16
 
17
+ OPENAI_API_KEY = os.environ["OPENAI_API_KEY"]
18
+ AGENTOPS_API_KEY = os.environ["AGENTOPS_API_KEY"]
19
+ logging.basicConfig(level=logging.DEBUG)
20
+ openai = OpenAI(api_key=OPENAI_API_KEY)
21
+ agentops.init(AGENTOPS_API_KEY)
22
 
23
  return get_crew().kickoff(inputs={"topic": topic})
24