Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -460,11 +460,19 @@ with gr.Blocks(
|
|
460 |
batch_size = gr.Slider(minimum=1, maximum=16, step=1, value=1, label="Batch Size", info="Larger consumes more RAM but may process slightly faster.")
|
461 |
|
462 |
with gr.Accordion("Rename Stems", open=False):
|
463 |
-
gr.
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
468 |
with gr.Row():
|
469 |
vocals_stem = gr.Textbox(value="NAME_(STEM)_MODEL", label="Vocals Stem", info="Output example: Music_(Vocals)_BS-Roformer-Viperx-1297", placeholder="NAME_(STEM)_MODEL")
|
470 |
instrumental_stem = gr.Textbox(value="NAME_(STEM)_MODEL", label="Instrumental Stem", info="Output example: Music_(Instrumental)_BS-Roformer-Viperx-1297", placeholder="NAME_(STEM)_MODEL")
|
@@ -476,6 +484,15 @@ with gr.Blocks(
|
|
476 |
guitar_stem = gr.Textbox(value="NAME_(STEM)_MODEL", label="Guitar Stem", info="Output example: Music_(Guitar)_BS-Roformer-Viperx-1297", placeholder="NAME_(STEM)_MODEL")
|
477 |
piano_stem = gr.Textbox(value="NAME_(STEM)_MODEL", label="Piano Stem", info="Output example: Music_(Piano)_BS-Roformer-Viperx-1297", placeholder="NAME_(STEM)_MODEL")
|
478 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
479 |
demucs_model.change(update_stems, inputs=[demucs_model], outputs=stem6)
|
480 |
|
481 |
roformer_button.click(
|
|
|
460 |
batch_size = gr.Slider(minimum=1, maximum=16, step=1, value=1, label="Batch Size", info="Larger consumes more RAM but may process slightly faster.")
|
461 |
|
462 |
with gr.Accordion("Rename Stems", open=False):
|
463 |
+
gr.Markdown(
|
464 |
+
"""
|
465 |
+
Keys for automatic determination of input file names, stems, and models to simplify the construction of output file names.
|
466 |
+
|
467 |
+
Keys:
|
468 |
+
* NAME - Input File Name
|
469 |
+
* STEM - Stem Name (e.g., Vocals, Instrumental)
|
470 |
+
* MODEL - Model Name (e.g., BS-Roformer-Viperx-1297)
|
471 |
+
|
472 |
+
Usage Example: NAME_(STEM)_MODEL
|
473 |
+
Output File Name: Music_(Vocals)_BS-Roformer-Viperx-1297
|
474 |
+
"""
|
475 |
+
)
|
476 |
with gr.Row():
|
477 |
vocals_stem = gr.Textbox(value="NAME_(STEM)_MODEL", label="Vocals Stem", info="Output example: Music_(Vocals)_BS-Roformer-Viperx-1297", placeholder="NAME_(STEM)_MODEL")
|
478 |
instrumental_stem = gr.Textbox(value="NAME_(STEM)_MODEL", label="Instrumental Stem", info="Output example: Music_(Instrumental)_BS-Roformer-Viperx-1297", placeholder="NAME_(STEM)_MODEL")
|
|
|
484 |
guitar_stem = gr.Textbox(value="NAME_(STEM)_MODEL", label="Guitar Stem", info="Output example: Music_(Guitar)_BS-Roformer-Viperx-1297", placeholder="NAME_(STEM)_MODEL")
|
485 |
piano_stem = gr.Textbox(value="NAME_(STEM)_MODEL", label="Piano Stem", info="Output example: Music_(Piano)_BS-Roformer-Viperx-1297", placeholder="NAME_(STEM)_MODEL")
|
486 |
|
487 |
+
with gr.TabItem("Credits"):
|
488 |
+
gr.Markdown(
|
489 |
+
"""
|
490 |
+
PolUVR created by **[Politrees](https://github.com/Bebra777228).
|
491 |
+
* python-audio-separator by [beveradb](https://github.com/beveradb).
|
492 |
+
* Thanks to [Hev832](https://huggingface.co/Hev832) for the help with the code.
|
493 |
+
"""
|
494 |
+
)
|
495 |
+
|
496 |
demucs_model.change(update_stems, inputs=[demucs_model], outputs=stem6)
|
497 |
|
498 |
roformer_button.click(
|