notsakeeb commited on
Commit
6b3df4f
·
verified ·
1 Parent(s): 2cd4b76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -146,16 +146,16 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
146
  submitted_answer = agent(question_text)
147
  answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
148
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
149
- time.sleep(7)
150
  except Exception as e:
151
  print(f"Error running agent on task {task_id}: {e}")
152
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
153
- time.sleep(7)
154
 
155
  if not answers_payload:
156
  print("Agent did not produce any answers to submit.")
157
  return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
158
- time.sleep(7)
159
 
160
  # 4. Prepare Submission
161
  submission_data = {"username": username.strip(), "agent_code": agent_code, "answers": answers_payload}
 
146
  submitted_answer = agent(question_text)
147
  answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
148
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
149
+ time.sleep(10)
150
  except Exception as e:
151
  print(f"Error running agent on task {task_id}: {e}")
152
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
153
+ time.sleep(10)
154
 
155
  if not answers_payload:
156
  print("Agent did not produce any answers to submit.")
157
  return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
158
+ time.sleep(10)
159
 
160
  # 4. Prepare Submission
161
  submission_data = {"username": username.strip(), "agent_code": agent_code, "answers": answers_payload}