Spaces:
Runtime error
Runtime error
Download app.py from Cloudme50/Unit_4_Final_Assignment_AIAgent: direct link, hf CLI and curl.
- Browser
- Download file 510 Bytes
-
https://huggingface.co/spaces/Cloudme50/Unit_4_Final_Assignment_AIAgent/resolve/main/app.py
- Command line
-
hf download hf://spaces/Cloudme50/Unit_4_Final_Assignment_AIAgent/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Cloudme50/Unit_4_Final_Assignment_AIAgent/resolve/main/app.py
510 Bytes
| import gradio as gr | |
| from agent_core import alfred | |
| from gaia_agent import answer_questions | |
| def run_gaia_agent(): | |
| import json | |
| answers = answer_questions() | |
| return json.dumps({"answers": answers}, indent=2) | |
| gr.Interface( | |
| fn=run_gaia_agent, | |
| inputs=[], | |
| outputs=gr.Textbox(label="GAIA Answers in Submission Format", lines=30), | |
| title="GAIA Agent Answer Generator", | |
| description="Click to run the GAIA agent across all Level 1 questions. Output is formatted for submission." | |
| ).launch() | |