Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -197,7 +197,7 @@ def tts_streaming(text: str, voice: str = "af_heart", speed: float = 1.0, format
|
|
197 |
if i == 0:
|
198 |
tokens_to_send = [0] + chunk_tokens
|
199 |
else:
|
200 |
-
tokens_to_send = [prev_last_token] + chunk_tokens
|
201 |
|
202 |
# Save the last token of this chunk for the next iteration.
|
203 |
prev_last_token = tokens_to_send[-1]
|
|
|
197 |
if i == 0:
|
198 |
tokens_to_send = [0] + chunk_tokens
|
199 |
else:
|
200 |
+
tokens_to_send = [prev_last_token] + [0] + chunk_tokens
|
201 |
|
202 |
# Save the last token of this chunk for the next iteration.
|
203 |
prev_last_token = tokens_to_send[-1]
|