Ramesh-vani commited on
Commit
634fa35
1 Parent(s): 94a622b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -10,8 +10,11 @@ async def websocket_consumer(websocket, path):
10
  print(code)
11
  async with websockets.connect('wss://ramesh-vani-wspython.hf.space') as wssocket:
12
 
 
13
  await wssocket.send(code)
 
14
  while True:
 
15
  response = await wssocket.recv()
16
  print(response)
17
  await websocket.send(response)
 
10
  print(code)
11
  async with websockets.connect('wss://ramesh-vani-wspython.hf.space') as wssocket:
12
 
13
+
14
  await wssocket.send(code)
15
+ print('code sent')
16
  while True:
17
+ print('loop')
18
  response = await wssocket.recv()
19
  print(response)
20
  await websocket.send(response)