Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,26 +1,34 @@
|
|
| 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 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 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 |
+
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 |
+
with gr.Tab(" Credits"):
|
| 21 |
+
gr.Markdown(
|
| 22 |
+
"""
|
| 23 |
+
this project made by [Blane187](https://huggingface.co/Blane187) with Improvements by [John6666](https://huggingfce.co/John6666)
|
| 24 |
+
""")
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
output = gr.Textbox(label="Output Models")
|
| 29 |
+
|
| 30 |
+
download_button = gr.Button("Download Model")
|
| 31 |
+
|
| 32 |
+
download_button.click(download_model, inputs=[url_input, dir_name_input], outputs=output)
|
| 33 |
+
|
| 34 |
+
demo.launch()
|