Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import requests
|
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
from agent import main_agent
|
|
|
|
| 7 |
|
| 8 |
# (Keep Constants as is)
|
| 9 |
# --- Constants ---
|
|
@@ -87,6 +88,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 87 |
except Exception as e:
|
| 88 |
print(f"Error running agent on task {task_id}: {e}")
|
| 89 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
|
|
|
| 90 |
|
| 91 |
if not answers_payload:
|
| 92 |
print("Agent did not produce any answers to submit.")
|
|
|
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
from agent import main_agent
|
| 7 |
+
import time
|
| 8 |
|
| 9 |
# (Keep Constants as is)
|
| 10 |
# --- Constants ---
|
|
|
|
| 88 |
except Exception as e:
|
| 89 |
print(f"Error running agent on task {task_id}: {e}")
|
| 90 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
| 91 |
+
time.sleep(30)
|
| 92 |
|
| 93 |
if not answers_payload:
|
| 94 |
print("Agent did not produce any answers to submit.")
|