Update app.py
Browse files
app.py
CHANGED
@@ -6,26 +6,27 @@ import gradio as gr
|
|
6 |
with gr.Blocks() as demo:
|
7 |
with gr.Row():
|
8 |
gr.Markdown("# RVC V2 - EASY GUI")
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
-
|
24 |
-
run_btn = gr.Button("Run Inference")
|
25 |
-
with gr.Row():
|
26 |
-
output_message = gr.Textbox(label="Output Message")
|
27 |
-
output_audio = gr.Audio(label="Output Audio",interactive=False)
|
28 |
|
29 |
-
|
30 |
-
|
31 |
demo.launch()
|
|
|
6 |
with gr.Blocks() as demo:
|
7 |
with gr.Row():
|
8 |
gr.Markdown("# RVC V2 - EASY GUI")
|
9 |
+
with gr.Tab("Inference"):
|
10 |
+
with gr.Row():
|
11 |
+
model_name = gr.Textbox(label="Model Name For Inference")
|
12 |
+
with gr.Row():
|
13 |
+
input_path = gr.Audio(label="Input Audio Path", type="filepath")
|
14 |
+
with gr.Row():
|
15 |
+
with gr.Accordion("Inference Settings"):
|
16 |
+
pitch = gr.Slider(minimum=-12, maximum=12, step=1, label="Pitch", value=0)
|
17 |
+
f0_method = gr.Dropdown(choices=["rmvpe", "pm", "harvest"], label="f0 Method", value="rmvpe")
|
18 |
+
index_rate = gr.Slider(minimum=0, maximum=1, step=0.01, label="Index Rate", value=0.5)
|
19 |
+
volume_normalization = gr.Slider(minimum=0, maximum=1, step=0.01, label="Volume Normalization", value=0)
|
20 |
+
consonant_protection = gr.Slider(minimum=0, maximum=1, step=0.01, label="Consonant Protection", value=0.5)
|
21 |
+
with gr.Row():
|
22 |
+
save_as = gr.Textbox(value="/content/RVC/audios/output_audio.wav", label="Output Audio Path")
|
23 |
+
|
24 |
+
run_btn = gr.Button("Run Inference")
|
25 |
+
with gr.Row():
|
26 |
+
output_message = gr.Textbox(label="Output Message",interactive=False)
|
27 |
+
output_audio = gr.Audio(label="Output Audio",interactive=False)
|
28 |
+
#run_btn.click(run_inference, [model_name, pitch, input_path, f0_method, save_as, index_rate, volume_normalization, consonant_protection], output_message)
|
29 |
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
+
|
|
|
32 |
demo.launch()
|