Yunshansongbai commited on
Commit
bd5ce41
1 Parent(s): 20bcda9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -168,7 +168,8 @@ with app:
168
  song_output = gr.Audio(label="输出歌曲",interactive=False)
169
  btn_separate.click(separate_fn, song_input, [text_output1, vocal_output1,instrumental_output1,vocal_input1,instrumental_input1])
170
  btn_convert.click(convert_fn, [model_name, vocal_input1,micro_input,vc_transform,auto_f0,cluster_ratio, slice_db, noise_scale], [text_output2, vc_output2,vocal_input2])
171
- btn_reboot.click(reboot)
 
172
  btn_use_convert.click(lambda x:x,vc_output2,vocal_input2)
173
  btn_use_separate.click(lambda x:x,vocal_output1,vocal_input1)
174
  btn_use_separate2.click(lambda x:x,instrumental_output1,instrumental_input1)
 
168
  song_output = gr.Audio(label="输出歌曲",interactive=False)
169
  btn_separate.click(separate_fn, song_input, [text_output1, vocal_output1,instrumental_output1,vocal_input1,instrumental_input1])
170
  btn_convert.click(convert_fn, [model_name, vocal_input1,micro_input,vc_transform,auto_f0,cluster_ratio, slice_db, noise_scale], [text_output2, vc_output2,vocal_input2])
171
+ btn_compose.click(compose_fn,[vocal_input2,instrumental_input1,mixing_ratio],[text_output3,song_output])
172
+
173
  btn_use_convert.click(lambda x:x,vc_output2,vocal_input2)
174
  btn_use_separate.click(lambda x:x,vocal_output1,vocal_input1)
175
  btn_use_separate2.click(lambda x:x,instrumental_output1,instrumental_input1)