Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ import requests
|
|
4 |
import inspect
|
5 |
import pandas as pd
|
6 |
from smolagents import DuckDuckGoSearchTool, CodeAgent, LiteLLMModel, FinalAnswerTool
|
|
|
7 |
|
8 |
# (Keep Constants as is)
|
9 |
# --- Constants ---
|
@@ -104,6 +105,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
104 |
except Exception as e:
|
105 |
print(f"Error running agent on task {task_id}: {e}")
|
106 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
|
|
107 |
|
108 |
if not answers_payload:
|
109 |
print("Agent did not produce any answers to submit.")
|
|
|
4 |
import inspect
|
5 |
import pandas as pd
|
6 |
from smolagents import DuckDuckGoSearchTool, CodeAgent, LiteLLMModel, FinalAnswerTool
|
7 |
+
import time
|
8 |
|
9 |
# (Keep Constants as is)
|
10 |
# --- Constants ---
|
|
|
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 |
+
time.sleep(5)
|
109 |
|
110 |
if not answers_payload:
|
111 |
print("Agent did not produce any answers to submit.")
|