Tomtom84 commited on
Commit
e96cc47
·
verified ·
1 Parent(s): d4b7e0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -152,8 +152,8 @@ async def tts(ws: WebSocket):
152
 
153
  # ----- Token‑Handling ----------------------------------------
154
  for t in new:
155
- # if t == EOS_TOKEN: # Temporarily commented out for debugging
156
- # raise StopIteration # Temporarily commented out for debugging
157
  if t == NEW_BLOCK:
158
  buf.clear()
159
  continue
 
152
 
153
  # ----- Token‑Handling ----------------------------------------
154
  for t in new:
155
+ if t == EOS_TOKEN: # Re-enabled EOS check
156
+ raise StopIteration # Re-enabled EOS check
157
  if t == NEW_BLOCK:
158
  buf.clear()
159
  continue