Hev832 commited on
Commit
b3499f0
1 Parent(s): f34bbe0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -22
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.Row():
289
- F0_CHANGE = gr.Number(label="Pitch Change (semitones)", value=0)
290
- F0_METHOD = gr.Dropdown(choices=["crepe", "harvest", "mangio-crepe", "rmvpe", "rmvpe+", "fcpe", "hybrid[rmvpe+fcpe]"],
291
- label="F0 Method", value="fcpe")
292
-
293
- with gr.Row():
294
- MIN_PITCH = gr.Textbox(label="Min Pitch", value="50")
295
- MAX_PITCH = gr.Textbox(label="Max Pitch", value="1100")
296
- CREPE_HOP_LENGTH = gr.Number(label="Crepe Hop Length", value=120)
297
- INDEX_RATE = gr.Slider(label="Index Rate", minimum=0, maximum=1, value=0.75)
298
- FILTER_RADIUS = gr.Number(label="Filter Radius", value=3)
299
- RMS_MIX_RATE = gr.Slider(label="RMS Mix Rate", minimum=0, maximum=1, value=0.25)
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=[dirname])
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
- instrumental_out = gr.Audio(label="Instrumental")
372
- vocals_out = gr.Audio(label="Vocals")
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=[instrumental_out, vocals_out, vocals_reverb_out, vocals_no_reverb_out, lead_vocals_out, backing_vocals_out]
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