Spaces:
Sleeping
Sleeping
Download app.py from FD900/Final_Assignment_Template: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/spaces/FD900/Final_Assignment_Template/resolve/0ee2d3aeee5ee6ca6ecadf0fde9050de00a4638e/app.py
- Command line
-
hf download hf://spaces/FD900/Final_Assignment_Template@0ee2d3aeee5ee6ca6ecadf0fde9050de00a4638e/app.py
-
curl -L -o app.py https://huggingface.co/spaces/FD900/Final_Assignment_Template/resolve/0ee2d3aeee5ee6ca6ecadf0fde9050de00a4638e/app.py
398 Bytes
| 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() |