Spaces:
Restarting
Restarting
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
|
|
3 |
import requests
|
4 |
import inspect
|
5 |
import pandas as pd
|
|
|
6 |
from agent import Agent
|
7 |
|
8 |
# (Keep Constants as is)
|
@@ -91,6 +92,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
91 |
print(f"Error running agent on task {task_id}: {e}")
|
92 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
93 |
|
|
|
|
|
94 |
if not answers_payload:
|
95 |
print("Agent did not produce any answers to submit.")
|
96 |
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 time
|
7 |
from agent import Agent
|
8 |
|
9 |
# (Keep Constants as is)
|
|
|
92 |
print(f"Error running agent on task {task_id}: {e}")
|
93 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
94 |
|
95 |
+
time.sleep(10)
|
96 |
+
|
97 |
if not answers_payload:
|
98 |
print("Agent did not produce any answers to submit.")
|
99 |
return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
|