Spaces:
Runtime error
Runtime error
Ramesh-vani
commited on
Commit
•
84d9598
1
Parent(s):
4a70d33
Update app.py
Browse files
app.py
CHANGED
@@ -24,5 +24,10 @@ class WebSocketThread(threading.Thread):
|
|
24 |
asyncio.get_event_loop().run_until_complete(start_server)
|
25 |
asyncio.get_event_loop().run_forever()
|
26 |
|
27 |
-
websocket_thread = WebSocketThread()
|
28 |
-
websocket_thread.start()
|
|
|
|
|
|
|
|
|
|
|
|
24 |
asyncio.get_event_loop().run_until_complete(start_server)
|
25 |
asyncio.get_event_loop().run_forever()
|
26 |
|
27 |
+
# websocket_thread = WebSocketThread()
|
28 |
+
# websocket_thread.start()
|
29 |
+
asyncio.set_event_loop(asyncio.new_event_loop())
|
30 |
+
start_server = websockets.serve(websocket_consumer, "0.0.0.0", 7860)
|
31 |
+
|
32 |
+
asyncio.get_event_loop().run_until_complete(start_server)
|
33 |
+
asyncio.get_event_loop().run_forever()
|