Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -152,8 +152,8 @@ async def tts(ws: WebSocket):
|
|
152 |
|
153 |
# ----- Token‑Handling ----------------------------------------
|
154 |
for t in new:
|
155 |
-
|
156 |
-
|
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
|