Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ from crew import run_crew
|
|
| 4 |
from util import get_questions
|
| 5 |
|
| 6 |
QUESTION_FILE_PATH = "data/gaia_validation.jsonl"
|
|
|
|
| 7 |
|
| 8 |
def invoke(level, question, file_name, ground_truth, openai_api_key, gemini_api_key):
|
| 9 |
if not question:
|
|
@@ -48,7 +49,7 @@ demo = gr.Interface(fn=invoke,
|
|
| 48 |
outputs=[gr.Textbox(label="Answer", lines=1, interactive=False, value=os.environ["OUTPUT"])],
|
| 49 |
title="General AI Assistant (GAIA) π€π€π€",
|
| 50 |
description=os.environ["DESCRIPTION"],
|
| 51 |
-
examples=get_questions(QUESTION_FILE_PATH),
|
| 52 |
cache_examples=False
|
| 53 |
)
|
| 54 |
|
|
|
|
| 4 |
from util import get_questions
|
| 5 |
|
| 6 |
QUESTION_FILE_PATH = "data/gaia_validation.jsonl"
|
| 7 |
+
QUESTION_LEVEL = 1
|
| 8 |
|
| 9 |
def invoke(level, question, file_name, ground_truth, openai_api_key, gemini_api_key):
|
| 10 |
if not question:
|
|
|
|
| 49 |
outputs=[gr.Textbox(label="Answer", lines=1, interactive=False, value=os.environ["OUTPUT"])],
|
| 50 |
title="General AI Assistant (GAIA) π€π€π€",
|
| 51 |
description=os.environ["DESCRIPTION"],
|
| 52 |
+
examples=get_questions(QUESTION_FILE_PATH, QUESTION_LEVEL),
|
| 53 |
cache_examples=False
|
| 54 |
)
|
| 55 |
|