Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -48,8 +48,7 @@ async def submit_answers(session: aiohttp.ClientSession, submit_url: str, submis
|
|
48 |
try:
|
49 |
async with session.post(submit_url, json=submission_data, timeout=60) as response:
|
50 |
response.raise_for_status()
|
51 |
-
return await response.json
|
52 |
-
()
|
53 |
except aiohttp.ClientResponseError as e:
|
54 |
print(f"Submission Failed: Server responded with status {e.status}. Detail: {e.message}")
|
55 |
return None
|
|
|
48 |
try:
|
49 |
async with session.post(submit_url, json=submission_data, timeout=60) as response:
|
50 |
response.raise_for_status()
|
51 |
+
return await response.json()
|
|
|
52 |
except aiohttp.ClientResponseError as e:
|
53 |
print(f"Submission Failed: Server responded with status {e.status}. Detail: {e.message}")
|
54 |
return None
|