bcci commited on
Commit
53c872d
·
verified ·
1 Parent(s): a10f390

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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[-1]
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]