Yurii Paniv commited on
Commit
dbebef0
1 Parent(s): 70b522e

Increase text limit to 7200 symbols

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -70,7 +70,7 @@ def tts(text: str, voice: str, stress: str):
70
  autostress_with_model = True if stress == StressOption.AutomaticStressWithModel.value else False
71
  speaker_name = "male1" if voice == VoiceOption.MaleVoice.value else "female3"
72
  text = preprocess_text(text, autostress_with_model)
73
- text_limit = 1200
74
  text = (
75
  text if len(text) < text_limit else text[0:text_limit]
76
  ) # mitigate crashes on hf space
 
70
  autostress_with_model = True if stress == StressOption.AutomaticStressWithModel.value else False
71
  speaker_name = "male1" if voice == VoiceOption.MaleVoice.value else "female3"
72
  text = preprocess_text(text, autostress_with_model)
73
+ text_limit = 7200
74
  text = (
75
  text if len(text) < text_limit else text[0:text_limit]
76
  ) # mitigate crashes on hf space