File size: 1,159 Bytes
fe54a29
 
 
 
 
 
 
 
 
 
 
 
 
53ffbb8
 
 
 
 
 
 
 
 
 
31ed23e
fe54a29
31ed23e
 
 
 
 
 
 
 
53ffbb8
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import gradio as gr
from rvc_infer import download_online_model

def download_model(url, dir_name):
    output_models = download_online_model(url, dir_name)
    return output_models


CSS = """
"""

with gr.Blocks(theme="Hev832/Applio", fill_width=True, css=CSS) as demo:

    with gr.Tabs():
        with gr.Tab("inferenece"):
            gr.Markdown("in progress")
        with gr.Tab("Download model"):
            gr.Markdown("## Download Model for infernece")
            url_input = gr.Textbox(label="Model URL", placeholder="Enter the URL of the model")
            dir_name_input = gr.Textbox(label="Directory Name", placeholder="Enter the directory name")
            
        output = gr.Textbox(label="Output Models")   
        download_button = gr.Button("Download Model")
    
    
    with gr.Tab(" Credits"):
        gr.Markdown(
            """
            this project made by [Blane187](https://huggingface.co/Blane187) with Improvements by [John6666](https://huggingfce.co/John6666)
            """)






download_button.click(download_model, inputs=[url_input, dir_name_input], outputs=output)




demo.launch(debug=True,show_api=False)