Blane187 commited on
Commit
fbe3d83
·
verified ·
1 Parent(s): 57a0199

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -20
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
- with gr.Row():
10
- model_name = gr.Textbox(label="Model Name For Inference")
11
- with gr.Row():
12
- input_path = gr.Audio(label="Input Audio Path", type="filepath")
13
- with gr.Row():
14
- with gr.Accordion("Inference Settings"):
15
- pitch = gr.Slider(minimum=-12, maximum=12, step=1, label="Pitch", value=0)
16
- f0_method = gr.Dropdown(choices=["rmvpe", "pm", "harvest"], label="f0 Method", value="rmvpe")
17
- index_rate = gr.Slider(minimum=0, maximum=1, step=0.01, label="Index Rate", value=0.5)
18
- volume_normalization = gr.Slider(minimum=0, maximum=1, step=0.01, label="Volume Normalization", value=0)
19
- consonant_protection = gr.Slider(minimum=0, maximum=1, step=0.01, label="Consonant Protection", value=0.5)
20
- with gr.Row():
21
- save_as = gr.Textbox(value="/content/RVC/audios/output_audio.wav", label="Output Audio Path")
 
 
 
 
 
 
 
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
- #run_btn.click(run_inference, [model_name, pitch, input_path, f0_method, save_as, index_rate, volume_normalization, consonant_protection], output_message)
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()