bstraehle commited on
Commit
b28d015
·
verified ·
1 Parent(s): 6874091

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import gradio as gr
2
- import agentops, os
 
3
 
4
  from crew import get_crew
5
 
@@ -11,16 +12,12 @@ def invoke(openai_api_key, topic, word_count=500):
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
 
18
  result = get_crew(LLM).kickoff(inputs={"topic": topic, "word_count": word_count})
19
 
20
- print("###")
21
- print(result)
22
- print("###")
23
-
24
  return result
25
 
26
  gr.close_all()
 
1
  import gradio as gr
2
+ #import agentops
3
+ import os
4
 
5
  from crew import get_crew
6
 
 
12
  if (topic == ""):
13
  raise gr.Error("Topic is required.")
14
 
15
+ #agentops.init(os.environ["AGENTOPS_API_KEY"])
16
 
17
  os.environ["OPENAI_API_KEY"] = openai_api_key
18
 
19
  result = get_crew(LLM).kickoff(inputs={"topic": topic, "word_count": word_count})
20
 
 
 
 
 
21
  return result
22
 
23
  gr.close_all()