bcci commited on
Commit
e74e9ca
·
verified ·
1 Parent(s): 04e4550

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -197,8 +197,8 @@ 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 + [0]
199
  else:
200
- tokens_to_send = [prev_last_token] + [16] + [0] + chunk_tokens + [0]
201
- # token_to_send = [0] + chunk_tokens + [0]
202
 
203
  # Save the last token of this chunk for the next iteration.
204
  prev_last_token = chunk_tokens[-1]
 
197
  if i == 0:
198
  tokens_to_send = [0] + chunk_tokens + [0]
199
  else:
200
+ # tokens_to_send = [prev_last_token] + [16] + [0] + chunk_tokens + [0]
201
+ token_to_send = [0] + chunk_tokens + [0]
202
 
203
  # Save the last token of this chunk for the next iteration.
204
  prev_last_token = chunk_tokens[-1]