Spaces:
Running
Running
Update app.py
Browse files
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
|
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 |
-
|
23 |
-
download_button =
|
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 |
|