fix: app module.
Browse files
app.py
CHANGED
|
@@ -109,11 +109,11 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 109 |
# 4. Prepare Submission
|
| 110 |
submission_data = {"username": username.strip(), "agent_code": agent_code, "answers": answers}
|
| 111 |
# submission_data = {"username": username.strip(), "agent_code": agent_code, "answers": answers_payload}
|
| 112 |
-
status_update = f"Agent finished. Submitting {len(
|
| 113 |
logger.info(status_update)
|
| 114 |
|
| 115 |
# 5. Submit
|
| 116 |
-
logger.info(f"Submitting {len(
|
| 117 |
try:
|
| 118 |
response = requests.post(submit_url, json=submission_data, timeout=60)
|
| 119 |
response.raise_for_status()
|
|
|
|
| 109 |
# 4. Prepare Submission
|
| 110 |
submission_data = {"username": username.strip(), "agent_code": agent_code, "answers": answers}
|
| 111 |
# submission_data = {"username": username.strip(), "agent_code": agent_code, "answers": answers_payload}
|
| 112 |
+
status_update = f"Agent finished. Submitting {len(answers)} answers for user '{username}'..."
|
| 113 |
logger.info(status_update)
|
| 114 |
|
| 115 |
# 5. Submit
|
| 116 |
+
logger.info(f"Submitting {len(answers)} answers to: {submit_url}")
|
| 117 |
try:
|
| 118 |
response = requests.post(submit_url, json=submission_data, timeout=60)
|
| 119 |
response.raise_for_status()
|