kenshin20080 commited on
Commit
ecead0d
1 Parent(s): b5acf06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,7 +31,7 @@ gr.Audio.postprocess = audio_postprocess
31
  def create_vc_fn(model, sid):
32
  def vc_fn(input_audio, vc_transform, auto_f0, tts_text, tts_voice, tts_mode):
33
  if tts_mode:
34
- if len(tts_text) > 100 and limitation:
35
  return "Text is too long", None
36
  if tts_text is None or tts_voice is None:
37
  return "You need to enter text and select a voice", None
@@ -118,7 +118,7 @@ if __name__ == '__main__':
118
  vc_transform = gr.Number(label="vc_transform", value=0)
119
  auto_f0 = gr.Checkbox(label="auto_f0", value=False)
120
  tts_mode = gr.Checkbox(label="tts (use edge-tts as input)", value=False)
121
- tts_text = gr.Textbox(visible=False, label="TTS text (100 words limitation)" if limitation else "TTS text")
122
  tts_voice = gr.Dropdown(choices=voices, visible=False)
123
  vc_submit = gr.Button("Generate", variant="primary")
124
  with gr.Column():
 
31
  def create_vc_fn(model, sid):
32
  def vc_fn(input_audio, vc_transform, auto_f0, tts_text, tts_voice, tts_mode):
33
  if tts_mode:
34
+ if len(tts_text) > 1000 and limitation:
35
  return "Text is too long", None
36
  if tts_text is None or tts_voice is None:
37
  return "You need to enter text and select a voice", None
 
118
  vc_transform = gr.Number(label="vc_transform", value=0)
119
  auto_f0 = gr.Checkbox(label="auto_f0", value=False)
120
  tts_mode = gr.Checkbox(label="tts (use edge-tts as input)", value=False)
121
+ tts_text = gr.Textbox(visible=False, label="TTS text (1000 words limitation)" if limitation else "TTS text")
122
  tts_voice = gr.Dropdown(choices=voices, visible=False)
123
  vc_submit = gr.Button("Generate", variant="primary")
124
  with gr.Column():