Spaces:
Sleeping
Sleeping
helloWorld199
commited on
Commit
•
6c4de84
1
Parent(s):
0129437
Update src/webui.py
Browse files- src/webui.py +5 -4
src/webui.py
CHANGED
@@ -4,11 +4,12 @@ import shutil
|
|
4 |
import urllib.request
|
5 |
import zipfile
|
6 |
from argparse import ArgumentParser
|
7 |
-
|
8 |
|
9 |
import gradio as gr
|
10 |
|
11 |
from main import song_cover_pipeline
|
|
|
12 |
|
13 |
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
14 |
|
@@ -230,9 +231,6 @@ if __name__ == '__main__':
|
|
230 |
clear_btn = gr.ClearButton(value='Clear', components=[main_vocals_input, backup_vocals_input, rvc_model, keep_files, main_vocals, backup_vocals])
|
231 |
generate_btn = gr.Button("Generate", variant='primary')
|
232 |
ai_cover = gr.Audio(label='AI Cover', show_share_button=False)
|
233 |
-
with gr.Accordion('For Debug Purposes', open=False):
|
234 |
-
with gr.Row():
|
235 |
-
debug_button = gr.Button(value='Debug')
|
236 |
ref_btn.click(update_models_list, None, outputs=rvc_model)
|
237 |
is_webui = gr.Number(value=1, visible=False)
|
238 |
generate_btn.click(song_cover_pipeline,
|
@@ -245,6 +243,9 @@ if __name__ == '__main__':
|
|
245 |
outputs=[pitch, main_gain, backup_gain, inst_gain, index_rate, filter_radius, rms_mix_rate,
|
246 |
protect, f0_method, crepe_hop_length, pitch_all, reverb_rm_size, reverb_wet,
|
247 |
reverb_dry, reverb_damping, output_format, ai_cover])
|
|
|
|
|
|
|
248 |
debug_button.click(show_stored_files("/"))
|
249 |
|
250 |
|
|
|
4 |
import urllib.request
|
5 |
import zipfile
|
6 |
from argparse import ArgumentParser
|
7 |
+
|
8 |
|
9 |
import gradio as gr
|
10 |
|
11 |
from main import song_cover_pipeline
|
12 |
+
from my_utils import show_stored_files
|
13 |
|
14 |
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
15 |
|
|
|
231 |
clear_btn = gr.ClearButton(value='Clear', components=[main_vocals_input, backup_vocals_input, rvc_model, keep_files, main_vocals, backup_vocals])
|
232 |
generate_btn = gr.Button("Generate", variant='primary')
|
233 |
ai_cover = gr.Audio(label='AI Cover', show_share_button=False)
|
|
|
|
|
|
|
234 |
ref_btn.click(update_models_list, None, outputs=rvc_model)
|
235 |
is_webui = gr.Number(value=1, visible=False)
|
236 |
generate_btn.click(song_cover_pipeline,
|
|
|
243 |
outputs=[pitch, main_gain, backup_gain, inst_gain, index_rate, filter_radius, rms_mix_rate,
|
244 |
protect, f0_method, crepe_hop_length, pitch_all, reverb_rm_size, reverb_wet,
|
245 |
reverb_dry, reverb_damping, output_format, ai_cover])
|
246 |
+
with gr.Accordion('For Debug Purposes', open=False):
|
247 |
+
with gr.Row():
|
248 |
+
debug_button = gr.Button(value='Debug')
|
249 |
debug_button.click(show_stored_files("/"))
|
250 |
|
251 |
|