Files changed (2) hide show
  1. README.md +12 -12
  2. app.py +26 -24
README.md CHANGED
@@ -1,13 +1,13 @@
1
- ---
2
- title: Rvc Infer
3
- emoji: πŸ—£οΈβž–βž–πŸ—£οΈ
4
- colorFrom: gray
5
- colorTo: gray
6
- sdk: gradio
7
- sdk_version: 4.42.0
8
- app_file: app.py
9
- pinned: true
10
- license: mit
11
- ---
12
-
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
+ ---
2
+ title: Rvc Infer
3
+ emoji: πŸ—£οΈβž–βž–πŸ—£οΈ
4
+ colorFrom: purple
5
+ colorTo: green
6
+ sdk: gradio
7
+ sdk_version: 4.42.0
8
+ app_file: app.py
9
+ pinned: true
10
+ license: mit
11
+ ---
12
+
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -1,24 +1,26 @@
1
- import gradio as gr
2
- 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
-
10
- with gr.Blocks() as demo:
11
- with gr.Tab("inferenece"):
12
- gr.Markdown("in progress")
13
- with gr.Tab("Download model"):
14
- gr.Markdown("## Download Model for infernece")
15
- url_input = gr.Textbox(label="Model URL", placeholder="Enter the URL of the model")
16
- dir_name_input = gr.Textbox(label="Directory Name", placeholder="Enter the directory name")
17
-
18
- output = gr.Textbox(label="Output Models")
19
-
20
- download_button = gr.Button("Download Model")
21
-
22
- download_button.click(download_model, inputs=[url_input, dir_name_input], outputs=output)
23
-
24
- demo.launch()
 
 
 
1
+ import gradio as gr
2
+ 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 = """
10
+ """
11
+
12
+ with gr.Blocks(theme="Hev832/Applio", fill_width=True, css=CSS) as demo:
13
+ with gr.Tab("inferenece"):
14
+ gr.Markdown("in progress")
15
+ with gr.Tab("Download model"):
16
+ gr.Markdown("## Download Model for infernece")
17
+ url_input = gr.Textbox(label="Model URL", placeholder="Enter the URL of the model")
18
+ dir_name_input = gr.Textbox(label="Directory Name", placeholder="Enter the directory name")
19
+
20
+ output = gr.Textbox(label="Output Models")
21
+
22
+ download_button = gr.Button("Download Model")
23
+
24
+ download_button.click(download_model, inputs=[url_input, dir_name_input], outputs=output)
25
+
26
+ demo.launch()