Spaces:
Sleeping
Sleeping
See what i will submit
Browse files- simuGAIA.py +6 -5
simuGAIA.py
CHANGED
|
@@ -284,16 +284,17 @@ def run_simuGAIA_all( profile: gr.OAuthProfile | None, submit: Optional[bool] =
|
|
| 284 |
print("Agent did not produce any answers to submit.")
|
| 285 |
return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
|
| 286 |
|
| 287 |
-
if not submit:
|
| 288 |
-
return "Run finished. No submission done, as asked.", pd.DataFrame(results_log)
|
| 289 |
-
|
| 290 |
-
|
| 291 |
# 4. Prepare Submission
|
| 292 |
submission_data = {"username": username.strip(), "agent_code": agent_code, "answers": answers_payload}
|
| 293 |
-
status_update = f"Agent finished. Submitting {len(answers_payload)} answers for user '{username}'..."
|
| 294 |
print(status_update)
|
| 295 |
|
| 296 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 297 |
# 5. Submit
|
| 298 |
print(f"Submitting {len(answers_payload)} answers to: {submit_url}")
|
| 299 |
try:
|
|
|
|
| 284 |
print("Agent did not produce any answers to submit.")
|
| 285 |
return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
|
| 286 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 287 |
# 4. Prepare Submission
|
| 288 |
submission_data = {"username": username.strip(), "agent_code": agent_code, "answers": answers_payload}
|
| 289 |
+
status_update = f"Agent finished. Submitting {len(answers_payload)} answers for user '{username}' with url being {agent_code}..."
|
| 290 |
print(status_update)
|
| 291 |
|
| 292 |
|
| 293 |
+
if not submit:
|
| 294 |
+
return "Run finished. No submission done, as asked.", pd.DataFrame(results_log)
|
| 295 |
+
|
| 296 |
+
|
| 297 |
+
|
| 298 |
# 5. Submit
|
| 299 |
print(f"Submitting {len(answers_payload)} answers to: {submit_url}")
|
| 300 |
try:
|