123Kumar commited on
Commit
000a6fa
1 Parent(s): 89a2021

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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) > 500:
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]"