Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
|
|
|
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())
|