Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,6 @@ def invoke(openai_api_key, serper_api_key, topic):
|
|
16 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
17 |
os.environ["SERPER_API_KEY"] = serper_api_key
|
18 |
|
19 |
-
#OPENAI_API_KEY = openai_api_key
|
20 |
AGENTOPS_API_KEY = os.environ["AGENTOPS_API_KEY"]
|
21 |
|
22 |
#logging.basicConfig(level=logging.DEBUG)
|
@@ -25,7 +24,7 @@ def invoke(openai_api_key, serper_api_key, topic):
|
|
25 |
|
26 |
agentops.init(AGENTOPS_API_KEY)
|
27 |
|
28 |
-
return get_crew(
|
29 |
|
30 |
gr.close_all()
|
31 |
|
|
|
16 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
17 |
os.environ["SERPER_API_KEY"] = serper_api_key
|
18 |
|
|
|
19 |
AGENTOPS_API_KEY = os.environ["AGENTOPS_API_KEY"]
|
20 |
|
21 |
#logging.basicConfig(level=logging.DEBUG)
|
|
|
24 |
|
25 |
agentops.init(AGENTOPS_API_KEY)
|
26 |
|
27 |
+
return get_crew(LLM).kickoff(inputs={"topic": topic})
|
28 |
|
29 |
gr.close_all()
|
30 |
|