Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,8 +112,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 112 |
print(f"Skipping item with missing task_id or question: {item}")
|
| 113 |
continue
|
| 114 |
try:
|
| 115 |
-
#submitted_answer = agent
|
| 116 |
-
submitted_answer = agent.
|
| 117 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
| 118 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
| 119 |
except Exception as e:
|
|
|
|
| 112 |
print(f"Skipping item with missing task_id or question: {item}")
|
| 113 |
continue
|
| 114 |
try:
|
| 115 |
+
#submitted_answer = agent(question_text)
|
| 116 |
+
submitted_answer = agent.provide_final_answer("How many seconds would it take for a leopard at full speed to run through Pont des Arts?")
|
| 117 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
| 118 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
| 119 |
except Exception as e:
|