Yurii Paniv commited on
Commit
b231da2
1 Parent(s): 51fc522

Lower text limit

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -46,7 +46,8 @@ for MODEL_NAME in MODEL_NAMES:
46
 
47
  def tts(text: str, model_name: str):
48
  text = preprocess_text(text)
49
- text = text if len(text) < 500 else text[0:500] # mitigate crashes on hf space
 
50
  print(text, model_name)
51
  synthesizer = MODELS.get(model_name, None)
52
  if synthesizer is None:
 
46
 
47
  def tts(text: str, model_name: str):
48
  text = preprocess_text(text)
49
+ text_limit = 300
50
+ text = text if len(text) < text_limit else text[0:text_limit] # mitigate crashes on hf space
51
  print(text, model_name)
52
  synthesizer = MODELS.get(model_name, None)
53
  if synthesizer is None: