Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1 +1,14 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
from agent import GaiaAgent
|
| 3 |
+
from gaia_benchmark.run import run_and_submit_all
|
| 4 |
+
|
| 5 |
+
agent = GaiaAgent()
|
| 6 |
+
|
| 7 |
+
with gr.Blocks() as demo:
|
| 8 |
+
gr.Markdown("# GAIA Agent Evaluation")
|
| 9 |
+
btn = gr.Button("Run Evaluation & Submit All Answers")
|
| 10 |
+
result = gr.Textbox(label="Submission Result")
|
| 11 |
+
|
| 12 |
+
btn.click(fn=lambda: run_and_submit_all(agent), outputs=result)
|
| 13 |
+
|
| 14 |
+
demo.launch()
|