Asapyams commited on
Commit
14b9969
Β·
verified Β·
1 Parent(s): 28bf034

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -11
app.py CHANGED
@@ -11,15 +11,10 @@ import pandas as pd
11
  import requests
12
  from tabulate import tabulate # fallback if pandas lacks to_markdown
13
 
14
- from smolagents import (
15
- OpenAIServerModel,
16
- DuckDuckGoSearchTool,
17
- CodeAgent,
18
- WikipediaSearchTool,
19
- PipelineTool,
20
- Tool,
21
- )
22
- from smolagents.tools import PythonInterpreterTool
23
 
24
  # ──────────────────────────────────────────────────────────────────────────────
25
  # Constants & Helpers
@@ -203,7 +198,6 @@ def run_and_submit_all(username: str):
203
  if not tid or q is None:
204
  continue
205
 
206
- # possibly download attached file
207
  fp = None
208
  try:
209
  fp = download_file_if_any(DEFAULT_API_URL, tid)
@@ -252,7 +246,7 @@ def run_and_submit_all(username: str):
252
 
253
  with gr.Blocks() as demo:
254
  gr.Markdown("# GAIA Agent Evaluation Runner")
255
- gr.Markdown("Enter your username and click **Run**")
256
  username_input = gr.Textbox(label="Username", placeholder="Your HF username")
257
  run_btn = gr.Button("Run Evaluation & Submit All Answers")
258
  status_box = gr.Textbox(label="Status / Submission Result", interactive=False)
@@ -267,3 +261,4 @@ with gr.Blocks() as demo:
267
  if __name__ == "__main__":
268
  print("Launching GAIA Agent App…")
269
  demo.launch(debug=True, share=False)
 
 
11
  import requests
12
  from tabulate import tabulate # fallback if pandas lacks to_markdown
13
 
14
+ # smolagents core
15
+ from smolagents import OpenAIServerModel, DuckDuckGoSearchTool, CodeAgent, WikipediaSearchTool
16
+ # tools live under smolagents.tools
17
+ from smolagents.tools import PipelineTool, Tool, PythonInterpreterTool
 
 
 
 
 
18
 
19
  # ──────────────────────────────────────────────────────────────────────────────
20
  # Constants & Helpers
 
198
  if not tid or q is None:
199
  continue
200
 
 
201
  fp = None
202
  try:
203
  fp = download_file_if_any(DEFAULT_API_URL, tid)
 
246
 
247
  with gr.Blocks() as demo:
248
  gr.Markdown("# GAIA Agent Evaluation Runner")
249
+ gr.Markdown("Enter your username and click **Run Evaluation & Submit All Answers**")
250
  username_input = gr.Textbox(label="Username", placeholder="Your HF username")
251
  run_btn = gr.Button("Run Evaluation & Submit All Answers")
252
  status_box = gr.Textbox(label="Status / Submission Result", interactive=False)
 
261
  if __name__ == "__main__":
262
  print("Launching GAIA Agent App…")
263
  demo.launch(debug=True, share=False)
264
+