Spaces:
Paused
Paused
Upload 2 files (#4)
Browse files- Upload 2 files (3b45108729a61f6327a3b470d200b0cfac54f327)
Co-authored-by: John Smith <John6666@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: Rvc Infer
|
| 3 |
-
emoji: π£οΈββπ£οΈ
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 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 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
with gr.Tab("
|
| 14 |
-
gr.Markdown("
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
download_button
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
| 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()
|