None1145 commited on
Commit
11b0ede
·
verified ·
1 Parent(s): 902056b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -141,8 +141,8 @@ def create_tts_fn(vq_model, ssl_model, t2s_model, hps, config, hz, max_sec):
141
  prompt_text=prompt_text.strip("\n")
142
  prompt_language,text=prompt_language,text.strip("\n")
143
  print(text)
144
- if len(text) > 50:
145
- return f"Error: Text is too long, ({len(text)}>50)", None
146
  with torch.no_grad():
147
  wav16k, sr = librosa.load(ref_wav_path, sr=16000)
148
  wav16k = torch.from_numpy(wav16k)
 
141
  prompt_text=prompt_text.strip("\n")
142
  prompt_language,text=prompt_language,text.strip("\n")
143
  print(text)
144
+ # if len(text) > 50:
145
+ # return f"Error: Text is too long, ({len(text)}>50)", None
146
  with torch.no_grad():
147
  wav16k, sr = librosa.load(ref_wav_path, sr=16000)
148
  wav16k = torch.from_numpy(wav16k)