nikhmr1235 commited on
Commit
deffd2a
·
verified ·
1 Parent(s): 54b0824

add a 1 min delay before every question

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -281,13 +281,13 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
281
  full_question_for_agent += f"\n\nAttachment '{file_name}' available at EXACT URL: {attachment_url}"
282
  #print(f"Running agent on task {task_id}: {full_question_for_agent}",flush=True)
283
 
284
-
285
  if task_id != "cca530fc-4052-43b2-b130-b30968d8aa44":
286
  print("NFLUSH Skip tasks that are not the specific one we want to run", flush=True)
287
  continue # Skip tasks that are not the specific one we want to run
288
-
289
  try:
290
- time.sleep(5) # Add a 5 sec 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})
 
281
  full_question_for_agent += f"\n\nAttachment '{file_name}' available at EXACT URL: {attachment_url}"
282
  #print(f"Running agent on task {task_id}: {full_question_for_agent}",flush=True)
283
 
284
+ '''
285
  if task_id != "cca530fc-4052-43b2-b130-b30968d8aa44":
286
  print("NFLUSH Skip tasks that are not the specific one we want to run", flush=True)
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})