Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -363,10 +363,10 @@ async def handle_user_input(websocket,key, process, connected):
|
|
363 |
|
364 |
return_code = await process.wait()
|
365 |
if return_code == 0:
|
366 |
-
|
367 |
pass
|
368 |
else:
|
369 |
-
|
370 |
pass
|
371 |
|
372 |
except Exception as e:
|
|
|
363 |
|
364 |
return_code = await process.wait()
|
365 |
if return_code == 0:
|
366 |
+
await send_message('Code executed successfully')
|
367 |
pass
|
368 |
else:
|
369 |
+
await send_message(f'error:Execution failed with return code {return_code}')
|
370 |
pass
|
371 |
|
372 |
except Exception as e:
|