Update app.py
Browse files
app.py
CHANGED
|
@@ -115,7 +115,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 115 |
print(f"Answer for task {task_id}: '{submitted_answer}'")
|
| 116 |
answers_payload.append({
|
| 117 |
"task_id": task_id,
|
| 118 |
-
"
|
| 119 |
# "reasoning_trace": None # optional, add if available
|
| 120 |
})
|
| 121 |
results_log.append({
|
|
@@ -127,7 +127,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 127 |
print(f"Error running agent on task {task_id}: {e}")
|
| 128 |
answers_payload.append({
|
| 129 |
"task_id": task_id,
|
| 130 |
-
"
|
| 131 |
# "reasoning_trace": None
|
| 132 |
})
|
| 133 |
results_log.append({
|
|
|
|
| 115 |
print(f"Answer for task {task_id}: '{submitted_answer}'")
|
| 116 |
answers_payload.append({
|
| 117 |
"task_id": task_id,
|
| 118 |
+
"submitted_answer": submitted_answer, # Changed key here
|
| 119 |
# "reasoning_trace": None # optional, add if available
|
| 120 |
})
|
| 121 |
results_log.append({
|
|
|
|
| 127 |
print(f"Error running agent on task {task_id}: {e}")
|
| 128 |
answers_payload.append({
|
| 129 |
"task_id": task_id,
|
| 130 |
+
"submitted_answer": f"AGENT ERROR: {e}", # Changed key here
|
| 131 |
# "reasoning_trace": None
|
| 132 |
})
|
| 133 |
results_log.append({
|