Update app.py
Browse files
app.py
CHANGED
@@ -285,19 +285,18 @@ with gr.Blocks(title="Hex RVC", theme=gr.themes.Default(primary_hue="red", secon
|
|
285 |
refresh_btn.click(refresh_audio_list, outputs=SOUND_PATH)
|
286 |
|
287 |
|
288 |
-
with gr.
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
PROTECT = gr.Slider(label="Protect", minimum=0, maximum=1, value=0.33)
|
301 |
|
302 |
with gr.Accordion("Hex TTS"):
|
303 |
input_text = gr.Textbox(lines=5, label="Input Text")
|
@@ -337,7 +336,7 @@ with gr.Blocks(title="Hex RVC", theme=gr.themes.Default(primary_hue="red", secon
|
|
337 |
outout_pah = gr.Textbox(label="output download", interactive=False)
|
338 |
button_model = gr.Button("Download model")
|
339 |
|
340 |
-
button_model.click(fn=download_online_model, inputs=[url, dirname], outputs=[
|
341 |
with gr.Tab("Audio Separation"):
|
342 |
with gr.Row():
|
343 |
input_audio = gr.Audio(type="filepath", label="Upload Audio File")
|
@@ -368,17 +367,12 @@ with gr.Blocks(title="Hex RVC", theme=gr.themes.Default(primary_hue="red", secon
|
|
368 |
separate_button = gr.Button("Separate Audio")
|
369 |
|
370 |
with gr.Row():
|
371 |
-
|
372 |
-
|
373 |
-
vocals_reverb_out = gr.Audio(label="Vocals (Reverb)")
|
374 |
-
vocals_no_reverb_out = gr.Audio(label="Vocals (No Reverb)")
|
375 |
-
lead_vocals_out = gr.Audio(label="Lead Vocals")
|
376 |
-
backing_vocals_out = gr.Audio(label="Backing Vocals")
|
377 |
-
|
378 |
separate_button.click(
|
379 |
separate_audio,
|
380 |
inputs=[input_audio, model_voc_inst, model_deecho, model_back_voc],
|
381 |
-
outputs=[
|
382 |
)
|
383 |
|
384 |
|
|
|
285 |
refresh_btn.click(refresh_audio_list, outputs=SOUND_PATH)
|
286 |
|
287 |
|
288 |
+
with gr.Accordion("Conversion Settings"):
|
289 |
+
with gr.Row():
|
290 |
+
F0_CHANGE = gr.Number(label="Pitch Change (semitones)", value=0)
|
291 |
+
F0_METHOD = gr.Dropdown(choices=["crepe", "harvest", "mangio-crepe", "rmvpe", "rmvpe+", "fcpe", "hybrid[rmvpe+fcpe]"], label="F0 Method", value="fcpe")
|
292 |
+
with gr.Row():
|
293 |
+
MIN_PITCH = gr.Textbox(label="Min Pitch", value="50")
|
294 |
+
MAX_PITCH = gr.Textbox(label="Max Pitch", value="1100")
|
295 |
+
CREPE_HOP_LENGTH = gr.Number(label="Crepe Hop Length", value=120)
|
296 |
+
INDEX_RATE = gr.Slider(label="Index Rate", minimum=0, maximum=1, value=0.75)
|
297 |
+
FILTER_RADIUS = gr.Number(label="Filter Radius", value=3)
|
298 |
+
RMS_MIX_RATE = gr.Slider(label="RMS Mix Rate", minimum=0, maximum=1, value=0.25)
|
299 |
+
PROTECT = gr.Slider(label="Protect", minimum=0, maximum=1, value=0.33)
|
|
|
300 |
|
301 |
with gr.Accordion("Hex TTS"):
|
302 |
input_text = gr.Textbox(lines=5, label="Input Text")
|
|
|
336 |
outout_pah = gr.Textbox(label="output download", interactive=False)
|
337 |
button_model = gr.Button("Download model")
|
338 |
|
339 |
+
button_model.click(fn=download_online_model, inputs=[url, dirname], outputs=[outout_pah])
|
340 |
with gr.Tab("Audio Separation"):
|
341 |
with gr.Row():
|
342 |
input_audio = gr.Audio(type="filepath", label="Upload Audio File")
|
|
|
367 |
separate_button = gr.Button("Separate Audio")
|
368 |
|
369 |
with gr.Row():
|
370 |
+
outout_paht = gr.Textbox(label="output download", interactive=False)
|
371 |
+
|
|
|
|
|
|
|
|
|
|
|
372 |
separate_button.click(
|
373 |
separate_audio,
|
374 |
inputs=[input_audio, model_voc_inst, model_deecho, model_back_voc],
|
375 |
+
outputs=[outout_paht]
|
376 |
)
|
377 |
|
378 |
|