mmichiels13 commited on
Commit
f4a3eb5
·
verified ·
1 Parent(s): d0790ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -69,7 +69,6 @@ class BasicAgent:
69
 
70
  try:
71
  # Run the agent with the question
72
- formatted_question = f"{question}\n\nOnly return the exact answer, no explanation."
73
  formatted_question = f"{self.system_prompt}\n\nQuestion: {question}\n\n"
74
  answer = self.agent.run(formatted_question)
75
  answer = str(answer).strip() if answer is not None else "No answer produced."
@@ -158,8 +157,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
158
  task_id, question_text, submitted_answer = future.result()
159
  if task_id is None:
160
  continue
161
- answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
162
- results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
163
  # results_log = []
164
  # answers_payload = []
165
  # print(f"Running agent on {len(questions_data)} questions...")
 
69
 
70
  try:
71
  # Run the agent with the question
 
72
  formatted_question = f"{self.system_prompt}\n\nQuestion: {question}\n\n"
73
  answer = self.agent.run(formatted_question)
74
  answer = str(answer).strip() if answer is not None else "No answer produced."
 
157
  task_id, question_text, submitted_answer = future.result()
158
  if task_id is None:
159
  continue
160
+ answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
161
+ results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
162
  # results_log = []
163
  # answers_payload = []
164
  # print(f"Running agent on {len(questions_data)} questions...")