rohaneng commited on
Commit
adbb008
·
verified ·
1 Parent(s): 0bca7b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(1) # 1 second delay
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")