Blane187 commited on
Commit
71c0851
·
verified ·
1 Parent(s): d2de53f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -934,7 +934,15 @@ with gr.Blocks(theme=applio, title="RVC UI") as app:
934
  format1 = gr.Radio(label="Export file format", choices=["wav", "flac", "mp3", "m4a"], value="wav", interactive=True)
935
  but1 = gr.Button("Convert", variant="primary")
936
  vc_output3 = gr.Textbox(label="Output information", interactive=False)
937
-
 
 
 
 
 
 
 
 
938
  with gr.TabItem("Train"):
939
  gr.Markdown("### Step 1. Fill in the experimental configuration.\nExperimental data is stored in the 'logs' folder, with each experiment having a separate folder. Manually enter the experiment name path, which contains the experimental configuration, logs, and trained model files.")
940
  exp_dir1 = gr.Textbox(label="Enter the experiment name", value="my voice")
 
934
  format1 = gr.Radio(label="Export file format", choices=["wav", "flac", "mp3", "m4a"], value="wav", interactive=True)
935
  but1 = gr.Button("Convert", variant="primary")
936
  vc_output3 = gr.Textbox(label="Output information", interactive=False)
937
+ with gr.TabItem("(Or download a model here)"):
938
+ with gr.Row():
939
+ url = gr.Textbox(label="Paste the URL here:",value="",placeholder="(i.e. https://huggingface.co/repo/model/resolve/main/model.zip)")
940
+ with gr.Row():
941
+ with gr.Column():
942
+ model_rename = gr.Textbox(placeholder="My-Model", label="Name your model:",value="")
943
+ with gr.Column():
944
+ download_button = gr.Button("Download")
945
+ download_button.click(fn=download_from_url,inputs=[url,model_rename],outputs=[url,model_picker])
946
  with gr.TabItem("Train"):
947
  gr.Markdown("### Step 1. Fill in the experimental configuration.\nExperimental data is stored in the 'logs' folder, with each experiment having a separate folder. Manually enter the experiment name path, which contains the experimental configuration, logs, and trained model files.")
948
  exp_dir1 = gr.Textbox(label="Enter the experiment name", value="my voice")