XzJosh commited on
Commit
4915278
1 Parent(s): 694d3e8

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -488,18 +488,11 @@ with gr.Blocks(title="GPT-SoVITS WebUI") as app:
488
  text_language = gr.Dropdown(
489
  label="需要合成的语种", choices=["中文", "英文", "日文"], value="中文"
490
  )
491
- how_to_cut = gr.Radio(
492
- label=("怎么切"),
493
- choices=[("不切"),("凑五句一切"),("凑50字一切"),("按中文句号。切"),("按英文句号.切"),],
494
- value=("凑50字一切"),
495
- interactive=True,
496
- )
497
  inference_button = gr.Button("合成语音", variant="primary")
498
- output = gr.Audio(label="输出的语音"))
499
-
500
  inference_button.click(
501
  get_tts_wav,
502
- [inp_ref, prompt_text, prompt_language, text, text_language,how_to_cut],
503
  [output],
504
  )
505
 
 
488
  text_language = gr.Dropdown(
489
  label="需要合成的语种", choices=["中文", "英文", "日文"], value="中文"
490
  )
 
 
 
 
 
 
491
  inference_button = gr.Button("合成语音", variant="primary")
492
+ output = gr.Audio(label="输出的语音")
 
493
  inference_button.click(
494
  get_tts_wav,
495
+ [audio_select, ref_text, prompt_language, text, text_language],
496
  [output],
497
  )
498