Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -287,10 +287,10 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 287 |
continue # Skip tasks that are not the specific one we want to run
|
| 288 |
|
| 289 |
try:
|
| 290 |
-
time.sleep(61) # Add a 1 min delay before running the agent
|
| 291 |
submitted_answer = agent(full_question_for_agent)
|
| 292 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
| 293 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
|
|
|
| 294 |
except Exception as e:
|
| 295 |
print(f"Error running agent on task {task_id}: {e}")
|
| 296 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
|
|
|
| 287 |
continue # Skip tasks that are not the specific one we want to run
|
| 288 |
|
| 289 |
try:
|
|
|
|
| 290 |
submitted_answer = agent(full_question_for_agent)
|
| 291 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
| 292 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
| 293 |
+
time.sleep(61) # Add a 1 min delay before running the agent
|
| 294 |
except Exception as e:
|
| 295 |
print(f"Error running agent on task {task_id}: {e}")
|
| 296 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|