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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -9
app.py CHANGED
@@ -487,18 +487,19 @@ with gr.Blocks(title="GPT-SoVITS WebUI") as app:
487
  text = gr.Textbox(label="需要合成的文本", value="")
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
  inference_button.click(
500
  get_tts_wav,
501
- [audio_select, ref_text, prompt_language, text, text_language],
502
  [output],
503
  )
504
 
 
487
  text = gr.Textbox(label="需要合成的文本", value="")
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