Commit ·
fd3fe1e
1
Parent(s): 40a1c5f
Rate-limiting.
Browse files
app.py
CHANGED
|
@@ -174,6 +174,8 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 174 |
print(f"Running agent on {len(questions_data)} questions...")
|
| 175 |
for item in questions_data:
|
| 176 |
await answer_question(agent, item, answers_payload, results_log)
|
|
|
|
|
|
|
| 177 |
|
| 178 |
if not answers_payload:
|
| 179 |
print("Agent did not produce any answers to submit.")
|
|
|
|
| 174 |
print(f"Running agent on {len(questions_data)} questions...")
|
| 175 |
for item in questions_data:
|
| 176 |
await answer_question(agent, item, answers_payload, results_log)
|
| 177 |
+
# Desperate attempt to rate limit the LLM calls.
|
| 178 |
+
await asyncio.sleep(60.0)
|
| 179 |
|
| 180 |
if not answers_payload:
|
| 181 |
print("Agent did not produce any answers to submit.")
|