Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -112,12 +112,12 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
112 |
response = requests.post(submit_url, json=submission_data, timeout=60)
|
113 |
response.raise_for_status()
|
114 |
result_data = response.json()
|
115 |
-
|
116 |
-
f"
|
117 |
-
f"
|
118 |
-
f"
|
119 |
-
f"
|
120 |
-
f"
|
121 |
)
|
122 |
print("Submission successful.")
|
123 |
results_df = pd.DataFrame(results_log)
|
|
|
112 |
response = requests.post(submit_url, json=submission_data, timeout=60)
|
113 |
response.raise_for_status()
|
114 |
result_data = response.json()
|
115 |
+
final_status = (
|
116 |
+
f"Submission Successful!\n" +
|
117 |
+
f"User: {result_data.get(\'username\')}\n" +
|
118 |
+
f"Overall Score: {result_data.get(\'score\', \'N/A\')}% " +
|
119 |
+
f"({result_data.get(\'correct_count\', \'?\')}/{result_data.get(\'total_attempted\', \'?\')} correct)\n" +
|
120 |
+
f"Message: {result_data.get(\'message\', \'No message received.\')}"
|
121 |
)
|
122 |
print("Submission successful.")
|
123 |
results_df = pd.DataFrame(results_log)
|