Update app.py
Browse files
app.py
CHANGED
@@ -811,8 +811,6 @@ with gr.Blocks(theme=applio, title="RVC UI") as app:
|
|
811 |
with gr.Row():
|
812 |
clean_button = gr.Button("Refresh model", variant="primary")
|
813 |
clean_button.click(fn=clean, inputs=[], outputs=[models])
|
814 |
-
refresh_button = gr.Button("Refresh index", variant="primary")
|
815 |
-
refresh_button.click(fn=change_choices, inputs=[], outputs=[file_index1], api_name="infer_refresh")
|
816 |
with gr.Row():
|
817 |
with gr.Row():
|
818 |
pith_voice = gr.Number(label="Transpose 12 for femal, -12 fo male)", value=0)
|
@@ -820,9 +818,12 @@ with gr.Blocks(theme=applio, title="RVC UI") as app:
|
|
820 |
spk_item = gr.Slider(minimum=0, maximum=2333, step=1, label="Select Speaker/Singer ID", value=0, visible=False, interactive=False)
|
821 |
|
822 |
modelinfo = gr.Textbox(label="Model info", max_lines=8, visible=False)
|
823 |
-
|
824 |
input_audio0 = gr.Audio(label="The audio file to be processed", type="filepath")
|
825 |
file_index1 = gr.File(label="Path to the feature index file. Leave blank to use the selected result from the dropdown")
|
|
|
|
|
|
|
|
|
826 |
with gr.Column():
|
827 |
f0method0 = gr.Radio(label="Select the pitch extraction algorithm ('pm': faster extraction but lower-quality speech; 'harvest': better bass but extremely slow; 'crepe': better quality but GPU intensive), 'rmvpe': best quality, and little GPU requirement", choices=["pm", "dio", "harvest", "crepe", "rmvpe", "fcpe"], value="rmvpe", interactive=True)
|
828 |
resample_sr0 = gr.Slider(minimum=0, maximum=48000, label="Resample the output audio in post-processing to the final sample rate. Set to 0 for no resampling", value=0, step=1, interactive=True)
|
|
|
811 |
with gr.Row():
|
812 |
clean_button = gr.Button("Refresh model", variant="primary")
|
813 |
clean_button.click(fn=clean, inputs=[], outputs=[models])
|
|
|
|
|
814 |
with gr.Row():
|
815 |
with gr.Row():
|
816 |
pith_voice = gr.Number(label="Transpose 12 for femal, -12 fo male)", value=0)
|
|
|
818 |
spk_item = gr.Slider(minimum=0, maximum=2333, step=1, label="Select Speaker/Singer ID", value=0, visible=False, interactive=False)
|
819 |
|
820 |
modelinfo = gr.Textbox(label="Model info", max_lines=8, visible=False)
|
|
|
821 |
input_audio0 = gr.Audio(label="The audio file to be processed", type="filepath")
|
822 |
file_index1 = gr.File(label="Path to the feature index file. Leave blank to use the selected result from the dropdown")
|
823 |
+
refresh_button = gr.Button("Refresh index", variant="primary")
|
824 |
+
refresh_button.click(fn=change_choices, inputs=[], outputs=[file_index1], api_name="infer_refresh")
|
825 |
+
|
826 |
+
|
827 |
with gr.Column():
|
828 |
f0method0 = gr.Radio(label="Select the pitch extraction algorithm ('pm': faster extraction but lower-quality speech; 'harvest': better bass but extremely slow; 'crepe': better quality but GPU intensive), 'rmvpe': best quality, and little GPU requirement", choices=["pm", "dio", "harvest", "crepe", "rmvpe", "fcpe"], value="rmvpe", interactive=True)
|
829 |
resample_sr0 = gr.Slider(minimum=0, maximum=48000, label="Resample the output audio in post-processing to the final sample rate. Set to 0 for no resampling", value=0, step=1, interactive=True)
|