Spaces:
Sleeping
Sleeping
Samuel Thomas
commited on
Commit
·
226f55a
1
Parent(s):
17a32cd
marker for answer submission
Browse files
app.py
CHANGED
@@ -106,6 +106,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
106 |
question_text = hf_questions[r]['question']
|
107 |
full_answer = run_agent(agent, s)
|
108 |
submitted_answer = extract_final_answer(full_answer[-1].content)
|
|
|
109 |
answers_payload.append({"task_id": task_id, "model_answer": submitted_answer})
|
110 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
111 |
except:
|
|
|
106 |
question_text = hf_questions[r]['question']
|
107 |
full_answer = run_agent(agent, s)
|
108 |
submitted_answer = extract_final_answer(full_answer[-1].content)
|
109 |
+
print(f"\n\nQuestion {r+1} Answer: {submitted_answer}\n\n")
|
110 |
answers_payload.append({"task_id": task_id, "model_answer": submitted_answer})
|
111 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
112 |
except:
|