Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,8 +15,9 @@ async def echo(websocket):
|
|
| 15 |
timout = 2500
|
| 16 |
async for message in websocket:
|
| 17 |
if message == "data":
|
| 18 |
-
|
| 19 |
-
|
|
|
|
| 20 |
try:
|
| 21 |
p = json.load(open("p.json"))
|
| 22 |
b = json.load(open("b.json"))
|
|
|
|
| 15 |
timout = 2500
|
| 16 |
async for message in websocket:
|
| 17 |
if message == "data":
|
| 18 |
+
p = json.load(open("p.json"))
|
| 19 |
+
b = json.load(open("b.json"))
|
| 20 |
+
await websocket.send(str(b))
|
| 21 |
try:
|
| 22 |
p = json.load(open("p.json"))
|
| 23 |
b = json.load(open("b.json"))
|