Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,13 +5,13 @@ from crew import get_crew
|
|
5 |
|
6 |
LLM = "gpt-4o"
|
7 |
|
8 |
-
def invoke(openai_api_key, topic, word_count=
|
9 |
if (openai_api_key == ""):
|
10 |
raise gr.Error("OpenAI API Key is required.")
|
11 |
if (topic == ""):
|
12 |
raise gr.Error("Topic is required.")
|
13 |
|
14 |
-
|
15 |
|
16 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
17 |
|
|
|
5 |
|
6 |
LLM = "gpt-4o"
|
7 |
|
8 |
+
def invoke(openai_api_key, topic, word_count=1000):
|
9 |
if (openai_api_key == ""):
|
10 |
raise gr.Error("OpenAI API Key is required.")
|
11 |
if (topic == ""):
|
12 |
raise gr.Error("Topic is required.")
|
13 |
|
14 |
+
agentops.init(os.environ["AGENTOPS_API_KEY"])
|
15 |
|
16 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
17 |
|