Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def vits(text, language, speaker_id, noise_scale, noise_scale_w, length_scale):
|
|
31 |
if not len(text):
|
32 |
return "输入文本不能为空!", None, None
|
33 |
text = text.replace('\n', ' ').replace('\r', '').replace(" ", "")
|
34 |
-
if len(text) >
|
35 |
return f"输入文字过长!{len(text)}>100", None, None
|
36 |
if language == 0:
|
37 |
text = f"[ZH]{text}[ZH]"
|
|
|
31 |
if not len(text):
|
32 |
return "输入文本不能为空!", None, None
|
33 |
text = text.replace('\n', ' ').replace('\r', '').replace(" ", "")
|
34 |
+
if len(text) > 900:
|
35 |
return f"输入文字过长!{len(text)}>100", None, None
|
36 |
if language == 0:
|
37 |
text = f"[ZH]{text}[ZH]"
|