Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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)
|