Update app.py
Browse files
app.py
CHANGED
@@ -33,11 +33,12 @@ with gr.Blocks() as demo:
|
|
33 |
with gr.Row():
|
34 |
f0_value = gr.Dropdown(choices=["pm", "crepe", "rmvpe"], label="F0 method", value="rmvpe")
|
35 |
|
36 |
-
with gr.
|
37 |
-
gr.
|
38 |
-
|
39 |
-
|
40 |
-
|
|
|
41 |
|
42 |
output_audio = gr.Audio(label="Output Audio")
|
43 |
command_output = gr.Textbox(label="Command Output")
|
|
|
33 |
with gr.Row():
|
34 |
f0_value = gr.Dropdown(choices=["pm", "crepe", "rmvpe"], label="F0 method", value="rmvpe")
|
35 |
|
36 |
+
with gr.Accordion(" download A pth file"):
|
37 |
+
with gr.Row():
|
38 |
+
gr.Markdown(" get pth file from huggingface, example `https://huggingface.co/sail-rvc/hitzeed-ch/blob/main/model.pth` ")
|
39 |
+
url = gr.Textbox(label=" url pth")
|
40 |
+
dowoad_but = gr.Button("download")
|
41 |
+
dowoad_but.click(download_pth, inputs=[url], outputs=[model_path])
|
42 |
|
43 |
output_audio = gr.Audio(label="Output Audio")
|
44 |
command_output = gr.Textbox(label="Command Output")
|