Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -90,7 +90,7 @@ async def execute_code(session_token: str, code: str):
|
|
90 |
if datetime.now() > timeout:
|
91 |
raise TimeoutError("Code execution timed out.")
|
92 |
|
93 |
-
msg =
|
94 |
if msg['msg_type'] == 'status' and msg['content']['execution_state'] == 'idle':
|
95 |
break
|
96 |
elif msg['msg_type'] == 'error':
|
|
|
90 |
if datetime.now() > timeout:
|
91 |
raise TimeoutError("Code execution timed out.")
|
92 |
|
93 |
+
msg = kc.get_iopub_msg()
|
94 |
if msg['msg_type'] == 'status' and msg['content']['execution_state'] == 'idle':
|
95 |
break
|
96 |
elif msg['msg_type'] == 'error':
|