alex-i07 commited on
Commit
9698cd5
·
1 Parent(s): b997411

sleep in order not to hit claude token limit

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(2) #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}")
 
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}")