ikechan8370 commited on
Commit
08f3af3
1 Parent(s): 0da8447

fix: try to enable larger input

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