clone3 commited on
Commit
3ad6834
·
1 Parent(s): 64c04dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,6 @@ async def hello():
8
  async with websockets.connect(uri) as websocket:
9
  messages = [
10
  '{"fn_index":2,"session_hash":"kb46puzhzr"}',
11
-
12
  ]
13
 
14
  for message in messages:
@@ -25,4 +24,5 @@ async def main():
25
  await hello()
26
 
27
  if __name__ == "__main__":
28
- asyncio.run(main())
 
 
8
  async with websockets.connect(uri) as websocket:
9
  messages = [
10
  '{"fn_index":2,"session_hash":"kb46puzhzr"}',
 
11
  ]
12
 
13
  for message in messages:
 
24
  await hello()
25
 
26
  if __name__ == "__main__":
27
+ loop = asyncio.get_event_loop()
28
+ loop.run_until_complete(main())