Update app.py
Browse files
app.py
CHANGED
|
@@ -90,6 +90,10 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 90 |
status_update = f"Agent finished. Submitting {len(answers_payload)} answers for user '{username}'..."
|
| 91 |
print(status_update)
|
| 92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
# 5. Submit
|
| 94 |
print(f"Submitting {len(answers_payload)} answers to: {submit_url}")
|
| 95 |
try:
|
|
|
|
| 90 |
status_update = f"Agent finished. Submitting {len(answers_payload)} answers for user '{username}'..."
|
| 91 |
print(status_update)
|
| 92 |
|
| 93 |
+
# Inside run_and_submit_all(), after results_log is built
|
| 94 |
+
with open("saved_answers.json", "w") as f:
|
| 95 |
+
json.dump(answers_payload, f, indent=2)
|
| 96 |
+
|
| 97 |
# 5. Submit
|
| 98 |
print(f"Submitting {len(answers_payload)} answers to: {submit_url}")
|
| 99 |
try:
|