Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,8 @@ import gradio as gr
|
|
2 |
import agentops, os
|
3 |
|
4 |
from crew import get_crew
|
5 |
-
|
|
|
6 |
|
7 |
def invoke(openai_api_key, serper_api_key, topic):
|
8 |
if (openai_api_key == ""):
|
@@ -24,7 +25,7 @@ def invoke(openai_api_key, serper_api_key, topic):
|
|
24 |
|
25 |
agentops.init(AGENTOPS_API_KEY)
|
26 |
|
27 |
-
return get_crew().kickoff(inputs={"topic": topic})
|
28 |
|
29 |
gr.close_all()
|
30 |
|
|
|
2 |
import agentops, os
|
3 |
|
4 |
from crew import get_crew
|
5 |
+
|
6 |
+
LLM = "gpt-4o"
|
7 |
|
8 |
def invoke(openai_api_key, serper_api_key, topic):
|
9 |
if (openai_api_key == ""):
|
|
|
25 |
|
26 |
agentops.init(AGENTOPS_API_KEY)
|
27 |
|
28 |
+
return get_crew(model).kickoff(inputs={"topic": topic})
|
29 |
|
30 |
gr.close_all()
|
31 |
|