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

Fix crashes after preprocessing

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