Update app.py
Browse files
app.py
CHANGED
|
@@ -6,8 +6,7 @@ import pandas as pd
|
|
| 6 |
from typing import Optional
|
| 7 |
from dotenv import load_dotenv
|
| 8 |
|
| 9 |
-
|
| 10 |
-
# 2. Safe smolagents imports
|
| 11 |
try:
|
| 12 |
from smolagents import CodeAgent, tool
|
| 13 |
except ImportError:
|
|
@@ -184,7 +183,7 @@ class GaiaAgent:
|
|
| 184 |
# Gradio Evaluation & Submission Runner
|
| 185 |
# ---------------------------------------------------------------------------
|
| 186 |
|
| 187 |
-
def
|
| 188 |
space_id = os.getenv("SPACE_ID")
|
| 189 |
|
| 190 |
if profile:
|
|
@@ -285,10 +284,6 @@ def _run_all_tasks(profile: gr.OAuthProfile | None):
|
|
| 285 |
return status_message, pd.DataFrame(results_log)
|
| 286 |
|
| 287 |
|
| 288 |
-
# Run directly on standard CPU (No ZeroGPU quota limits)
|
| 289 |
-
run_and_submit_all = _run_all_tasks
|
| 290 |
-
|
| 291 |
-
|
| 292 |
# --- Build Gradio Interface ---
|
| 293 |
with gr.Blocks(title="GAIA Final Project Agent Runner", theme=gr.themes.Soft()) as demo:
|
| 294 |
gr.Markdown("# 🏆 Final Project: GAIA Benchmark Agent Runner")
|
|
|
|
| 6 |
from typing import Optional
|
| 7 |
from dotenv import load_dotenv
|
| 8 |
|
| 9 |
+
# Safe smolagents imports
|
|
|
|
| 10 |
try:
|
| 11 |
from smolagents import CodeAgent, tool
|
| 12 |
except ImportError:
|
|
|
|
| 183 |
# Gradio Evaluation & Submission Runner
|
| 184 |
# ---------------------------------------------------------------------------
|
| 185 |
|
| 186 |
+
def run_and_submit_all(profile: gr.OAuthProfile | None):
|
| 187 |
space_id = os.getenv("SPACE_ID")
|
| 188 |
|
| 189 |
if profile:
|
|
|
|
| 284 |
return status_message, pd.DataFrame(results_log)
|
| 285 |
|
| 286 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 287 |
# --- Build Gradio Interface ---
|
| 288 |
with gr.Blocks(title="GAIA Final Project Agent Runner", theme=gr.themes.Soft()) as demo:
|
| 289 |
gr.Markdown("# 🏆 Final Project: GAIA Benchmark Agent Runner")
|