Spaces:
Sleeping
Sleeping
sleep in order not to hit claude token limit
Browse files
app.py
CHANGED
|
@@ -115,7 +115,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 115 |
submitted_answer = agent(question_text, question_filepath)
|
| 116 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
| 117 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
| 118 |
-
time.sleep(
|
| 119 |
|
| 120 |
except Exception as e:
|
| 121 |
print(f"Error running agent on task {task_id}: {e}")
|
|
|
|
| 115 |
submitted_answer = agent(question_text, question_filepath)
|
| 116 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
| 117 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
| 118 |
+
time.sleep(60) #sleep in order not to hit claude token limit
|
| 119 |
|
| 120 |
except Exception as e:
|
| 121 |
print(f"Error running agent on task {task_id}: {e}")
|