bstraehle commited on
Commit
be96b46
·
verified ·
1 Parent(s): e634ae3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  import os, threading
3
 
4
- from crew import get_crew
5
  from util import get_questions
6
 
7
  lock = threading.Lock()
@@ -18,7 +18,7 @@ def invoke(level, question, file_name, ground_truth, openai_api_key):
18
 
19
  try:
20
  os.environ["OPENAI_API_KEY"] = openai_api_key
21
- answer = get_crew().kickoff(inputs={"topic": question})
22
  except Exception as e:
23
  raise gr.Error(e)
24
  finally:
 
1
  import gradio as gr
2
  import os, threading
3
 
4
+ from crew import run_crew
5
  from util import get_questions
6
 
7
  lock = threading.Lock()
 
18
 
19
  try:
20
  os.environ["OPENAI_API_KEY"] = openai_api_key
21
+ answer = run_crew()
22
  except Exception as e:
23
  raise gr.Error(e)
24
  finally: