Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -140,10 +140,11 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
140 |
response = requests.post(submit_url, json=submission_data, timeout=60)
|
141 |
response.raise_for_status()
|
142 |
result_data = response.json()
|
|
|
143 |
final_status = (
|
144 |
f"Submission Successful!\n"
|
145 |
f"User: {result_data.get('username')}\n"
|
146 |
-
f"Overall Score: {result_data.get('score', '
|
147 |
f"({result_data.get('correct_count', '?')}/{result_data.get('total_attempted', '?')} correct)\n"
|
148 |
f"Message: {result_data.get('message', 'No message received.')}"
|
149 |
)
|
|
|
140 |
response = requests.post(submit_url, json=submission_data, timeout=60)
|
141 |
response.raise_for_status()
|
142 |
result_data = response.json()
|
143 |
+
print(result_data)
|
144 |
final_status = (
|
145 |
f"Submission Successful!\n"
|
146 |
f"User: {result_data.get('username')}\n"
|
147 |
+
f"Overall Score: {result_data.get('score', '?')}% "
|
148 |
f"({result_data.get('correct_count', '?')}/{result_data.get('total_attempted', '?')} correct)\n"
|
149 |
f"Message: {result_data.get('message', 'No message received.')}"
|
150 |
)
|