Blane187 commited on
Commit
16eb9a3
·
verified ·
1 Parent(s): a618ac2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ with gr.Blocks(title="RVC UI") as app:
22
  models = gr.Dropdown(label="voice model", choices=sorted(names))
23
  clean_button = gr.Button("Unload model to save GPU memory", variant="primary")
24
  spk_item = gr.Slider(minimum=0,maximum=2333,step=1,label="Select Speaker/Singer ID",value=0,visible=False,interactive=False,)
25
- clean_button.click(fn=clean, inputs=[], outputs=[sid0], api_name="infer_clean")
26
  modelinfo = gr.Textbox(label="Model info", max_lines=8)
27
  with gr.TabItem("Single inference"):
28
  pith_voice = gr.Number(label="Transpose (integer, number of semitones, raise by an octave: 12, lower by an octave: -12)",value=0,)
@@ -41,7 +41,7 @@ with gr.Blocks(title="RVC UI") as app:
41
  refresh_button.click(
42
  fn=change_choices,
43
  inputs=[],
44
- outputs=[sid0, file_index2],
45
  api_name="infer_refresh",
46
  )
47
  with gr.TabItem("Batch inference"):
 
22
  models = gr.Dropdown(label="voice model", choices=sorted(names))
23
  clean_button = gr.Button("Unload model to save GPU memory", variant="primary")
24
  spk_item = gr.Slider(minimum=0,maximum=2333,step=1,label="Select Speaker/Singer ID",value=0,visible=False,interactive=False,)
25
+ clean_button.click(fn=clean, inputs=[], outputs=[models], api_name="infer_clean")
26
  modelinfo = gr.Textbox(label="Model info", max_lines=8)
27
  with gr.TabItem("Single inference"):
28
  pith_voice = gr.Number(label="Transpose (integer, number of semitones, raise by an octave: 12, lower by an octave: -12)",value=0,)
 
41
  refresh_button.click(
42
  fn=change_choices,
43
  inputs=[],
44
+ outputs=[models, file_index2],
45
  api_name="infer_refresh",
46
  )
47
  with gr.TabItem("Batch inference"):