notsakeeb commited on
Commit
adf0d1d
·
verified ·
1 Parent(s): 5f0c9fa

Update app.py

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