Spaces:
Running
Running
Update app.py
Browse files
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 |
|