Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -201,7 +201,7 @@ def tts_streaming(text: str, voice: str = "af_heart", speed: float = 1.0, format
|
|
201 |
# token_to_send = [0] + chunk_tokens
|
202 |
|
203 |
# Save the last token of this chunk for the next iteration.
|
204 |
-
prev_last_token = chunk_tokens[-
|
205 |
|
206 |
# Prepare the model input (a batch of one sequence).
|
207 |
final_token = [tokens_to_send]
|
|
|
201 |
# token_to_send = [0] + chunk_tokens
|
202 |
|
203 |
# Save the last token of this chunk for the next iteration.
|
204 |
+
prev_last_token = chunk_tokens[-2:]
|
205 |
|
206 |
# Prepare the model input (a batch of one sequence).
|
207 |
final_token = [tokens_to_send]
|