Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,7 +90,7 @@ def generate_tts_audio(
|
|
| 90 |
generate_kwargs["audio_prompt_path"] = audio_prompt_path_input
|
| 91 |
|
| 92 |
wav = current_model.generate(
|
| 93 |
-
text_input
|
| 94 |
**generate_kwargs
|
| 95 |
)
|
| 96 |
print("Audio generation complete.")
|
|
|
|
| 90 |
generate_kwargs["audio_prompt_path"] = audio_prompt_path_input
|
| 91 |
|
| 92 |
wav = current_model.generate(
|
| 93 |
+
text_input, # Truncate text to max chars
|
| 94 |
**generate_kwargs
|
| 95 |
)
|
| 96 |
print("Audio generation complete.")
|