yukiakai commited on
Commit
693ed7d
1 Parent(s): b3b2603

refactor: Update limit to 100

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -120,7 +120,7 @@ def create_tts_fn(vq_model, ssl_model, t2s_model, hps, config, hz, max_sec):
120
  prompt_text=prompt_text.strip("\n")
121
  prompt_language,text=prompt_language,text.strip("\n")
122
  print(text)
123
- if len(text) > 50:
124
  return f"Error: Text is too long, ({len(text)}>50)", None
125
  with torch.no_grad():
126
  wav16k, sr = librosa.load(ref_wav_path, sr=16000) # 派蒙
 
120
  prompt_text=prompt_text.strip("\n")
121
  prompt_language,text=prompt_language,text.strip("\n")
122
  print(text)
123
+ if len(text) > 100:
124
  return f"Error: Text is too long, ({len(text)}>50)", None
125
  with torch.no_grad():
126
  wav16k, sr = librosa.load(ref_wav_path, sr=16000) # 派蒙