Sanjayyy06 commited on
Commit
34f25be
·
verified ·
1 Parent(s): 31c7934

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -8
app.py CHANGED
@@ -1,18 +1,23 @@
1
- # app.py - HF Space entrypoint (copy-paste ready)
2
  import os
3
- from agent_runner import run_submission
4
  import gradio as gr
 
5
 
6
- def run_gaia():
7
- result = run_submission()
8
- return result
 
 
 
 
9
 
10
  demo = gr.Interface(
11
- fn=run_gaia,
12
  inputs=[],
13
  outputs="json",
14
- title="GAIA Benchmark Agent (Gemini Free Tier)",
15
- description="Click RUN to solve 20 GAIA questions & submit score (aiming 6+/20 for cert)"
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__":