Update app.py
Browse files
app.py
CHANGED
@@ -830,9 +830,11 @@ with gr.Blocks(theme=applio, title="RVC UI") as app:
|
|
830 |
f0_file = gr.File(label="F0 curve file (optional). One pitch per line. Replaces the default F0 and pitch modulation", visible=False)
|
831 |
vc_output1 = gr.Textbox(label="Output information", interactive=False)
|
832 |
vc_output2 = gr.Audio(label="Export audio (click on the three dots in the lower right corner to download)", type="filepath", interactive=False)
|
833 |
-
|
834 |
with gr.TabItem("Batch inference"):
|
835 |
gr.Markdown("<center>Batch conversion\n. Enter the folder containing the audio files to be converted or upload multiple audio files. The converted audio will be output in the specified folder (default: 'opt').")
|
|
|
|
|
836 |
vc_transform1 = gr.Number(label="Transpose (integer, number of semitones, raise by an octave: 12, lower by an octave: -12)", value=0)
|
837 |
dir_input = gr.Textbox(label="Enter the path of the audio folder to be processed (copy it from the address bar of the file manager)", placeholder="C:\\Users\\Desktop\\input_vocal_dir")
|
838 |
inputs = gr.File(file_count="multiple", label="Multiple audio files can also be imported. If a folder path exists, this input is ignored.")
|
|
|
830 |
f0_file = gr.File(label="F0 curve file (optional). One pitch per line. Replaces the default F0 and pitch modulation", visible=False)
|
831 |
vc_output1 = gr.Textbox(label="Output information", interactive=False)
|
832 |
vc_output2 = gr.Audio(label="Export audio (click on the three dots in the lower right corner to download)", type="filepath", interactive=False)
|
833 |
+
|
834 |
with gr.TabItem("Batch inference"):
|
835 |
gr.Markdown("<center>Batch conversion\n. Enter the folder containing the audio files to be converted or upload multiple audio files. The converted audio will be output in the specified folder (default: 'opt').")
|
836 |
+
refresh_button = gr.Button("Refresh index", variant="primary")
|
837 |
+
refresh_button.click(fn=change_choices, inputs=[], outputs=[file_index2], api_name="infer_refresh")
|
838 |
vc_transform1 = gr.Number(label="Transpose (integer, number of semitones, raise by an octave: 12, lower by an octave: -12)", value=0)
|
839 |
dir_input = gr.Textbox(label="Enter the path of the audio folder to be processed (copy it from the address bar of the file manager)", placeholder="C:\\Users\\Desktop\\input_vocal_dir")
|
840 |
inputs = gr.File(file_count="multiple", label="Multiple audio files can also be imported. If a folder path exists, this input is ignored.")
|