Blane187 commited on
Commit
548f1ce
·
verified ·
1 Parent(s): 45a780c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -3,7 +3,7 @@ from rvc_infer import download_online_model
3
 
4
  def download_model(url, dir_name):
5
  output_models = download_online_model(url, dir_name)
6
- return output_models
7
 
8
 
9
  CSS = """
@@ -18,10 +18,9 @@ with gr.Blocks(theme="Hev832/Applio", fill_width=True, css=CSS) as demo:
18
  gr.Markdown("## Download Model for infernece")
19
  url_input = gr.Textbox(label="Model URL", placeholder="Enter the URL of the model")
20
  dir_name_input = gr.Textbox(label="Directory Name", placeholder="Enter the directory name")
21
-
22
- output = gr.Textbox(label="Output Models")
23
- download_button = gr.Button("Download Model")
24
- download_button.click(download_model, inputs=[url_input, dir_name_input], outputs=output)
25
 
26
 
27
 
 
3
 
4
  def download_model(url, dir_name):
5
  output_models = download_online_model(url, dir_name)
6
+ return dir_name
7
 
8
 
9
  CSS = """
 
18
  gr.Markdown("## Download Model for infernece")
19
  url_input = gr.Textbox(label="Model URL", placeholder="Enter the URL of the model")
20
  dir_name_input = gr.Textbox(label="Directory Name", placeholder="Enter the directory name")
21
+
22
+ download_button = gr.Button("Download Model")
23
+ download_button.click(download_model, inputs=[url_input, dir_name_input], outputs)
 
24
 
25
 
26