bstraehle commited on
Commit
4afd97e
1 Parent(s): daf0ceb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=500):
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
 
 
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