bstraehle commited on
Commit
87de436
·
verified ·
1 Parent(s): 0026068

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -4,6 +4,8 @@ import os, threading
4
  from agent import run_agent
5
  from helper import get_questions
6
 
 
 
7
  lock = threading.Lock()
8
 
9
  def invoke(level, question, file_name, ground_truth, openai_api_key):
@@ -31,7 +33,7 @@ demo = gr.Interface(fn = invoke,
31
  gr.Radio(["True", "False"], label = "Matches Ground Truth", value = os.environ["OUTPUT_MATCHES_GROUND_TRUTH"], interactive = False)],
32
  title = "General AI Assistant (GAIA)",
33
  description = os.environ["DESCRIPTION"],
34
- examples = get_questions(),
35
  cache_examples = False
36
  )
37
 
 
4
  from agent import run_agent
5
  from helper import get_questions
6
 
7
+ LEVEL = 1
8
+
9
  lock = threading.Lock()
10
 
11
  def invoke(level, question, file_name, ground_truth, openai_api_key):
 
33
  gr.Radio(["True", "False"], label = "Matches Ground Truth", value = os.environ["OUTPUT_MATCHES_GROUND_TRUTH"], interactive = False)],
34
  title = "General AI Assistant (GAIA)",
35
  description = os.environ["DESCRIPTION"],
36
+ examples = get_questions(LEVEL),
37
  cache_examples = False
38
  )
39