Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,6 +55,6 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
| 55 |
# Update the previous sentence to avoid repetition
|
| 56 |
previous_sentence = current_sentence
|
| 57 |
# Simulate delay for real-time streaming
|
| 58 |
-
await asyncio.sleep(
|
| 59 |
except WebSocketDisconnect:
|
| 60 |
print("Client disconnected")
|
|
|
|
| 55 |
# Update the previous sentence to avoid repetition
|
| 56 |
previous_sentence = current_sentence
|
| 57 |
# Simulate delay for real-time streaming
|
| 58 |
+
await asyncio.sleep(0.5) # 0.5 second delay
|
| 59 |
except WebSocketDisconnect:
|
| 60 |
print("Client disconnected")
|