Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -148,6 +148,8 @@ DEMUCS_MODELS = {
|
|
148 |
'hdemucs_mmi': 'hdemucs_mmi.yaml',
|
149 |
}
|
150 |
|
|
|
|
|
151 |
def print_message(input_file, model_name):
|
152 |
"""Prints information about the audio separation process."""
|
153 |
base_name = os.path.splitext(os.path.basename(input_file))[0]
|
@@ -412,7 +414,7 @@ with gr.Blocks(
|
|
412 |
with gr.Group():
|
413 |
with gr.Row():
|
414 |
roformer_model = gr.Dropdown(value="MelBand Roformer Kim | Big Beta 5e FT by unwa", label="Select the Model", choices=list(ROFORMER_MODELS.keys()), scale=3)
|
415 |
-
roformer_output_format = gr.Dropdown(value="wav", choices=
|
416 |
with gr.Accordion("Advanced settings", open=False):
|
417 |
with gr.Column(variant='panel'):
|
418 |
with gr.Group():
|
@@ -439,7 +441,7 @@ with gr.Blocks(
|
|
439 |
with gr.Group():
|
440 |
with gr.Row():
|
441 |
mdx23c_model = gr.Dropdown(value="MDX23C-InstVoc HQ", label="Select the Model", choices=list(MDX23C_MODELS.keys()), scale=3)
|
442 |
-
mdx23c_output_format = gr.Dropdown(value="wav", choices=
|
443 |
with gr.Accordion("Advanced settings", open=False):
|
444 |
with gr.Column(variant='panel'):
|
445 |
with gr.Group():
|
@@ -466,7 +468,7 @@ with gr.Blocks(
|
|
466 |
with gr.Group():
|
467 |
with gr.Row():
|
468 |
mdx_model = gr.Dropdown(value="UVR-MDX-NET Inst HQ 5", label="Select the Model", choices=list(MDXNET_MODELS.keys()), scale=3)
|
469 |
-
mdx_output_format = gr.Dropdown(value="wav", choices=
|
470 |
with gr.Accordion("Advanced settings", open=False):
|
471 |
with gr.Column(variant='panel'):
|
472 |
with gr.Group():
|
@@ -493,7 +495,7 @@ with gr.Blocks(
|
|
493 |
with gr.Group():
|
494 |
with gr.Row():
|
495 |
vr_model = gr.Dropdown(value="1_HP-UVR", label="Select the Model", choices=list(VR_ARCH_MODELS.keys()), scale=3)
|
496 |
-
vr_output_format = gr.Dropdown(value="wav", choices=
|
497 |
with gr.Accordion("Advanced settings", open=False):
|
498 |
with gr.Column(variant='panel'):
|
499 |
with gr.Group():
|
@@ -523,7 +525,7 @@ with gr.Blocks(
|
|
523 |
with gr.Group():
|
524 |
with gr.Row():
|
525 |
demucs_model = gr.Dropdown(value="htdemucs_ft", label="Select the Model", choices=list(DEMUCS_MODELS.keys()), scale=3)
|
526 |
-
demucs_output_format = gr.Dropdown(value="wav", choices=
|
527 |
with gr.Accordion("Advanced settings", open=False):
|
528 |
with gr.Column(variant='panel'):
|
529 |
with gr.Group():
|
|
|
148 |
'hdemucs_mmi': 'hdemucs_mmi.yaml',
|
149 |
}
|
150 |
|
151 |
+
OUTPUT_FORMAT = ["wav", "flac", "mp3", "ogg", "opus", "m4a", "aiff", "ac3"]
|
152 |
+
|
153 |
def print_message(input_file, model_name):
|
154 |
"""Prints information about the audio separation process."""
|
155 |
base_name = os.path.splitext(os.path.basename(input_file))[0]
|
|
|
414 |
with gr.Group():
|
415 |
with gr.Row():
|
416 |
roformer_model = gr.Dropdown(value="MelBand Roformer Kim | Big Beta 5e FT by unwa", label="Select the Model", choices=list(ROFORMER_MODELS.keys()), scale=3)
|
417 |
+
roformer_output_format = gr.Dropdown(value="wav", choices=OUTPUT_FORMAT, label="Output Format", info="The format of the output audio file.", scale=1)
|
418 |
with gr.Accordion("Advanced settings", open=False):
|
419 |
with gr.Column(variant='panel'):
|
420 |
with gr.Group():
|
|
|
441 |
with gr.Group():
|
442 |
with gr.Row():
|
443 |
mdx23c_model = gr.Dropdown(value="MDX23C-InstVoc HQ", label="Select the Model", choices=list(MDX23C_MODELS.keys()), scale=3)
|
444 |
+
mdx23c_output_format = gr.Dropdown(value="wav", choices=OUTPUT_FORMAT, label="Output Format", info="The format of the output audio file.", scale=1)
|
445 |
with gr.Accordion("Advanced settings", open=False):
|
446 |
with gr.Column(variant='panel'):
|
447 |
with gr.Group():
|
|
|
468 |
with gr.Group():
|
469 |
with gr.Row():
|
470 |
mdx_model = gr.Dropdown(value="UVR-MDX-NET Inst HQ 5", label="Select the Model", choices=list(MDXNET_MODELS.keys()), scale=3)
|
471 |
+
mdx_output_format = gr.Dropdown(value="wav", choices=OUTPUT_FORMAT, label="Output Format", info="The format of the output audio file.", scale=1)
|
472 |
with gr.Accordion("Advanced settings", open=False):
|
473 |
with gr.Column(variant='panel'):
|
474 |
with gr.Group():
|
|
|
495 |
with gr.Group():
|
496 |
with gr.Row():
|
497 |
vr_model = gr.Dropdown(value="1_HP-UVR", label="Select the Model", choices=list(VR_ARCH_MODELS.keys()), scale=3)
|
498 |
+
vr_output_format = gr.Dropdown(value="wav", choices=OUTPUT_FORMAT, label="Output Format", info="The format of the output audio file.", scale=1)
|
499 |
with gr.Accordion("Advanced settings", open=False):
|
500 |
with gr.Column(variant='panel'):
|
501 |
with gr.Group():
|
|
|
525 |
with gr.Group():
|
526 |
with gr.Row():
|
527 |
demucs_model = gr.Dropdown(value="htdemucs_ft", label="Select the Model", choices=list(DEMUCS_MODELS.keys()), scale=3)
|
528 |
+
demucs_output_format = gr.Dropdown(value="wav", choices=OUTPUT_FORMAT, label="Output Format", info="The format of the output audio file.", scale=1)
|
529 |
with gr.Accordion("Advanced settings", open=False):
|
530 |
with gr.Column(variant='panel'):
|
531 |
with gr.Group():
|