Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
|
| 3 |
|
| 4 |
|
| 5 |
weight_root = os.getenv("weight_root")
|
|
@@ -15,12 +15,11 @@ index_paths = []
|
|
| 15 |
|
| 16 |
with gr.Blocks(title="RVC UI") as app:
|
| 17 |
gr.Markdown("<center><h1> RVC UI 🗣️")
|
|
|
|
| 18 |
models = gr.Dropdown(label="voice model", choices=sorted(names))
|
| 19 |
clean_button = gr.Button("Unload model to save GPU memory", variant="primary")
|
| 20 |
spk_item = gr.Slider(minimum=0,maximum=2333,step=1,label="Select Speaker/Singer ID",value=0,visible=False,interactive=False,)
|
| 21 |
-
clean_button.click(
|
| 22 |
-
fn=clean, inputs=[], outputs=[sid0], api_name="infer_clean"
|
| 23 |
-
)
|
| 24 |
modelinfo = gr.Textbox(label="Model info", max_lines=8)
|
| 25 |
with gr.TabItem("Single inference"):
|
| 26 |
pith_voice = gr.Number(label="Transpose (integer, number of semitones, raise by an octave: 12, lower by an octave: -12)",value=0,)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import os
|
| 3 |
|
| 4 |
|
| 5 |
weight_root = os.getenv("weight_root")
|
|
|
|
| 15 |
|
| 16 |
with gr.Blocks(title="RVC UI") as app:
|
| 17 |
gr.Markdown("<center><h1> RVC UI 🗣️")
|
| 18 |
+
gr.Markdown("this ui not done yet!")
|
| 19 |
models = gr.Dropdown(label="voice model", choices=sorted(names))
|
| 20 |
clean_button = gr.Button("Unload model to save GPU memory", variant="primary")
|
| 21 |
spk_item = gr.Slider(minimum=0,maximum=2333,step=1,label="Select Speaker/Singer ID",value=0,visible=False,interactive=False,)
|
| 22 |
+
clean_button.click(fn=clean, inputs=[], outputs=[sid0], api_name="infer_clean")
|
|
|
|
|
|
|
| 23 |
modelinfo = gr.Textbox(label="Model info", max_lines=8)
|
| 24 |
with gr.TabItem("Single inference"):
|
| 25 |
pith_voice = gr.Number(label="Transpose (integer, number of semitones, raise by an octave: 12, lower by an octave: -12)",value=0,)
|