Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,18 +1,23 @@
|
|
| 1 |
-
# app.py - HF Space entrypoint
|
| 2 |
import os
|
| 3 |
-
|
| 4 |
import gradio as gr
|
|
|
|
| 5 |
|
| 6 |
-
def
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
demo = gr.Interface(
|
| 11 |
-
fn=
|
| 12 |
inputs=[],
|
| 13 |
outputs="json",
|
| 14 |
-
title="GAIA
|
| 15 |
-
description="
|
| 16 |
)
|
| 17 |
|
| 18 |
if __name__ == "__main__":
|
|
|
|
| 1 |
+
# app.py - HF Space entrypoint
|
| 2 |
import os
|
| 3 |
+
import json
|
| 4 |
import gradio as gr
|
| 5 |
+
from agent_runner import run_submission
|
| 6 |
|
| 7 |
+
def run_gaia_click():
|
| 8 |
+
# Use run_submission() which will fetch questions and submit
|
| 9 |
+
try:
|
| 10 |
+
result = run_submission()
|
| 11 |
+
return result
|
| 12 |
+
except Exception as e:
|
| 13 |
+
return {"status": "error", "message": str(e)}
|
| 14 |
|
| 15 |
demo = gr.Interface(
|
| 16 |
+
fn=run_gaia_click,
|
| 17 |
inputs=[],
|
| 18 |
outputs="json",
|
| 19 |
+
title="GAIA Robust Agent (text-focused, safe-file-skip)",
|
| 20 |
+
description="Solves GAIA Level-1 tasks while safely skipping problematic file types (images/audio)."
|
| 21 |
)
|
| 22 |
|
| 23 |
if __name__ == "__main__":
|