Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,8 +10,8 @@ print("-------")
|
|
| 10 |
json.dump({}, open("p.json", "w"))
|
| 11 |
timeout = 2500
|
| 12 |
async def echo(websocket):
|
|
|
|
| 13 |
async for message in websocket:
|
| 14 |
-
|
| 15 |
jm = json.loads(message)
|
| 16 |
print(jm)
|
| 17 |
if jm["token"] == None:
|
|
|
|
| 10 |
json.dump({}, open("p.json", "w"))
|
| 11 |
timeout = 2500
|
| 12 |
async def echo(websocket):
|
| 13 |
+
global timout
|
| 14 |
async for message in websocket:
|
|
|
|
| 15 |
jm = json.loads(message)
|
| 16 |
print(jm)
|
| 17 |
if jm["token"] == None:
|