Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -199,6 +199,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 199 |
except Exception as e:
|
| 200 |
print(f"Error on task {task_id}: {e}")
|
| 201 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"ERROR: {e}"})
|
|
|
|
| 202 |
|
| 203 |
if not answers_payload:
|
| 204 |
return "Agent did not produce any answers.", pd.DataFrame(results_log)
|
|
|
|
| 199 |
except Exception as e:
|
| 200 |
print(f"Error on task {task_id}: {e}")
|
| 201 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"ERROR: {e}"})
|
| 202 |
+
import time; time.sleep(5) # avoid rate limiting (free tier: 15 req/min)
|
| 203 |
|
| 204 |
if not answers_payload:
|
| 205 |
return "Agent did not produce any answers.", pd.DataFrame(results_log)
|