None1145 commited on
Commit
6bc1ddc
·
1 Parent(s): aca3960
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -102,7 +102,7 @@ with app:
102
  speaker = gr.Dropdown(label="讲话人", choices=speakers, value=speakers[0])
103
  model_submit = gr.Button("加载模型", variant="primary")
104
  model_output1 = gr.Textbox(label="Output Message")
105
- model_submit.click(load, [speaker], [model_output1])
106
  with gr.Tabs():
107
  # sid = gr.Dropdown(label="音色", choices=speakers, value=speakers[0])
108
  vc_input3 = gr.Audio(label="上传音频")
@@ -114,5 +114,5 @@ with app:
114
  vc_submit = gr.Button("转换", variant="primary")
115
  vc_output1 = gr.Textbox(label="Output Message")
116
  vc_output2 = gr.Audio(label="Output Audio")
117
- vc_submit.click(vc_fn, [vc_input3, vc_transform,auto_f0,cluster_ratio, slice_db, noise_scale], [vc_output1, vc_output2])
118
  app.launch()
 
102
  speaker = gr.Dropdown(label="讲话人", choices=speakers, value=speakers[0])
103
  model_submit = gr.Button("加载模型", variant="primary")
104
  model_output1 = gr.Textbox(label="Output Message")
105
+ model_submit.click(load, [speaker], [model_output1])
106
  with gr.Tabs():
107
  # sid = gr.Dropdown(label="音色", choices=speakers, value=speakers[0])
108
  vc_input3 = gr.Audio(label="上传音频")
 
114
  vc_submit = gr.Button("转换", variant="primary")
115
  vc_output1 = gr.Textbox(label="Output Message")
116
  vc_output2 = gr.Audio(label="Output Audio")
117
+ vc_submit.click(vc_fn, [vc_input3, vc_transform,auto_f0,cluster_ratio, slice_db, noise_scale], [vc_output1, vc_output2])
118
  app.launch()