Spaces:
Running
Running
refactor: Update limit to 100
Browse files
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) >
|
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) # 派蒙
|