Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
import requests
|
4 |
import inspect
|
5 |
import pandas as pd
|
6 |
-
|
7 |
from smolagents import DuckDuckGoSearchTool, CodeAgent, WikipediaSearchTool, GoogleSearchTool, FinalAnswerTool, InferenceClientModel
|
8 |
|
9 |
|
@@ -105,7 +105,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
105 |
except Exception as e:
|
106 |
print(f"Error running agent on task {task_id}: {e}")
|
107 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
108 |
-
|
109 |
if not answers_payload:
|
110 |
print("Agent did not produce any answers to submit.")
|
111 |
return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
|
|
|
3 |
import requests
|
4 |
import inspect
|
5 |
import pandas as pd
|
6 |
+
import yaml
|
7 |
from smolagents import DuckDuckGoSearchTool, CodeAgent, WikipediaSearchTool, GoogleSearchTool, FinalAnswerTool, InferenceClientModel
|
8 |
|
9 |
|
|
|
105 |
except Exception as e:
|
106 |
print(f"Error running agent on task {task_id}: {e}")
|
107 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
108 |
+
break
|
109 |
if not answers_payload:
|
110 |
print("Agent did not produce any answers to submit.")
|
111 |
return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
|