Update app.py
Browse files
app.py
CHANGED
|
@@ -122,6 +122,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 122 |
response = requests.post(submit_url, json=submission_data)
|
| 123 |
response.raise_for_status()
|
| 124 |
result_data = response.json()
|
|
|
|
| 125 |
final_status = (
|
| 126 |
f"Submission Successful!\n"
|
| 127 |
f"User: {result_data.get('username')}\n"
|
|
@@ -131,6 +132,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 131 |
)
|
| 132 |
print("Submission successful.")
|
| 133 |
results_df = pd.DataFrame(results_log)
|
|
|
|
| 134 |
return final_status, results_df
|
| 135 |
except requests.exceptions.HTTPError as e:
|
| 136 |
error_detail = f"Server responded with status {e.response.status_code}."
|
|
|
|
| 122 |
response = requests.post(submit_url, json=submission_data)
|
| 123 |
response.raise_for_status()
|
| 124 |
result_data = response.json()
|
| 125 |
+
print(f"Raw submission result_data: {result_data}")
|
| 126 |
final_status = (
|
| 127 |
f"Submission Successful!\n"
|
| 128 |
f"User: {result_data.get('username')}\n"
|
|
|
|
| 132 |
)
|
| 133 |
print("Submission successful.")
|
| 134 |
results_df = pd.DataFrame(results_log)
|
| 135 |
+
orint(f"Raw submission result_df: {results_df}")
|
| 136 |
return final_status, results_df
|
| 137 |
except requests.exceptions.HTTPError as e:
|
| 138 |
error_detail = f"Server responded with status {e.response.status_code}."
|