tsuching commited on
Commit
1b6f17f
·
verified ·
1 Parent(s): 090c022

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -307,6 +307,9 @@ def run_task_tts(text: str):
307
  if not isinstance(text, str):
308
  text = str(text)
309
 
 
 
 
310
  # 1) Generate speech via MMS-TTS
311
  speech = tts_tibetan(text) # pipeline expects plain string
312
 
 
307
  if not isinstance(text, str):
308
  text = str(text)
309
 
310
+ # Add extra space to prevent cut endings
311
+ text = text + " ";
312
+
313
  # 1) Generate speech via MMS-TTS
314
  speech = tts_tibetan(text) # pipeline expects plain string
315