Ramesh-vani commited on
Commit
cb65892
·
1 Parent(s): 02b6e08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -14,9 +14,10 @@ async def run_code(websocket, path):
14
 
15
  async with websockets.connect('wss://ramesh-vani-wspython.hf.space') as web:
16
  await web.send(code)
 
17
  while True:
18
  response = await web.recv()
19
- print(response)
20
  await send_message(response)
21
  break
22
 
 
14
 
15
  async with websockets.connect('wss://ramesh-vani-wspython.hf.space') as web:
16
  await web.send(code)
17
+ print("Code sent to external WebSocket server.")
18
  while True:
19
  response = await web.recv()
20
+ print("Received response:", response)
21
  await send_message(response)
22
  break
23