philincloud commited on
Commit
2158da9
·
verified ·
1 Parent(s): a7bced9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- "model_answer": submitted_answer,
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
- "model_answer": f"AGENT ERROR: {e}",
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({