Spaces:
Sleeping
Sleeping
File size: 398 Bytes
4f3ed20 924b7fa 4f3ed20 924b7fa | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import gradio as gr
from agent import GaiaAgent
from gaia_benchmark.run import run_and_submit_all
agent = GaiaAgent()
with gr.Blocks() as demo:
gr.Markdown("# GAIA Agent Evaluation")
btn = gr.Button("Run Evaluation & Submit All Answers")
result = gr.Textbox(label="Submission Result")
btn.click(fn=lambda: run_and_submit_all(agent.answer_question), outputs=result)
demo.launch() |