Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,6 @@ import os, threading
|
|
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):
|
@@ -39,7 +37,7 @@ demo = gr.Interface(fn = invoke,
|
|
39 |
gr.Radio(["True", "False"], label = "Matches Ground Truth", interactive = False)],
|
40 |
title = "General AI Assistant (GAIA)",
|
41 |
description = os.environ["DESCRIPTION"],
|
42 |
-
examples = get_questions(
|
43 |
cache_examples = False
|
44 |
)
|
45 |
|
|
|
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):
|
|
|
37 |
gr.Radio(["True", "False"], label = "Matches Ground Truth", interactive = False)],
|
38 |
title = "General AI Assistant (GAIA)",
|
39 |
description = os.environ["DESCRIPTION"],
|
40 |
+
examples = get_questions(),
|
41 |
cache_examples = False
|
42 |
)
|
43 |
|