Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import shutil
|
|
5 |
import logging
|
6 |
import subprocess
|
7 |
import gradio as gr
|
8 |
-
|
9 |
from audio_separator.separator import Separator
|
10 |
|
11 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
@@ -403,6 +403,7 @@ def show_hide_params(param):
|
|
403 |
with gr.Blocks(
|
404 |
title="🎵 Audio-Separator by NeoPY 🎵",
|
405 |
css="footer{display:none !important}",
|
|
|
406 |
) as app:
|
407 |
gr.HTML("<h1><center> 🎵 Audio-Separator HF Demo 🎵 </center></h1>")
|
408 |
|
@@ -458,7 +459,7 @@ with gr.Blocks(
|
|
458 |
mdx23c_audio = gr.Audio(label="Input Audio", type="filepath")
|
459 |
with gr.Row():
|
460 |
mdx23c_button = gr.Button("Separate!", variant="primary")
|
461 |
-
with gr.Row():
|
462 |
mdx23c_stem1 = gr.Audio(label="Stem 1", type="filepath", interactive=False)
|
463 |
mdx23c_stem2 = gr.Audio(label="Stem 2", type="filepath", interactive=False)
|
464 |
|
@@ -486,7 +487,7 @@ with gr.Blocks(
|
|
486 |
mdx_audio = gr.Audio(label="Input Audio", type="filepath")
|
487 |
with gr.Row():
|
488 |
mdx_button = gr.Button("Separate!", variant="primary")
|
489 |
-
with gr.Row():
|
490 |
mdx_stem1 = gr.Audio(label="Stem 1", type="filepath", interactive=False)
|
491 |
mdx_stem2 = gr.Audio(label="Stem 2", type="filepath", interactive=False)
|
492 |
|
@@ -516,7 +517,7 @@ with gr.Blocks(
|
|
516 |
vr_audio = gr.Audio(label="Input Audio", type="filepath")
|
517 |
with gr.Row():
|
518 |
vr_button = gr.Button("Separate!", variant="primary")
|
519 |
-
with gr.Row():
|
520 |
vr_stem1 = gr.Audio(label="Stem 1", type="filepath", interactive=False)
|
521 |
vr_stem2 = gr.Audio(label="Stem 2", type="filepath", interactive=False)
|
522 |
|
@@ -543,19 +544,19 @@ with gr.Blocks(
|
|
543 |
demucs_audio = gr.Audio(label="Input Audio", type="filepath")
|
544 |
with gr.Row():
|
545 |
demucs_button = gr.Button("Separate!", variant="primary")
|
546 |
-
with gr.Row():
|
547 |
demucs_stem1 = gr.Audio(label="Stem 1", type="filepath", interactive=False)
|
548 |
demucs_stem2 = gr.Audio(label="Stem 2", type="filepath", interactive=False)
|
549 |
-
with gr.Row():
|
550 |
demucs_stem3 = gr.Audio(label="Stem 3", type="filepath", interactive=False)
|
551 |
demucs_stem4 = gr.Audio(label="Stem 4", type="filepath", interactive=False)
|
552 |
-
with gr.Row(visible=False) as stem6:
|
553 |
demucs_stem5 = gr.Audio(label="Stem 5", type="filepath", interactive=False)
|
554 |
demucs_stem6 = gr.Audio(label="Stem 6", type="filepath", interactive=False)
|
555 |
|
556 |
with gr.Tab("Settings"):
|
557 |
with gr.Group():
|
558 |
-
with gr.Row():
|
559 |
model_file_dir = gr.Textbox(value="/tmp/audio-separator-models/", label="Directory to cache model files", info="The directory where model files are stored.", placeholder="/tmp/audio-separator-models/")
|
560 |
output_dir = gr.Textbox(value="output", label="File output directory", info="The directory where output files will be saved.", placeholder="output")
|
561 |
|
@@ -597,7 +598,7 @@ with gr.Blocks(
|
|
597 |
with gr.Tab("Credits"):
|
598 |
gr.Markdown(
|
599 |
"""
|
600 |
-
This Space created by **[Politrees](https://github.com/Bebra777228) forked by [
|
601 |
* python-audio-separator by **[beveradb](https://github.com/beveradb)**.
|
602 |
"""
|
603 |
)
|
|
|
5 |
import logging
|
6 |
import subprocess
|
7 |
import gradio as gr
|
8 |
+
from assets.theme.applio import Applio
|
9 |
from audio_separator.separator import Separator
|
10 |
|
11 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
403 |
with gr.Blocks(
|
404 |
title="🎵 Audio-Separator by NeoPY 🎵",
|
405 |
css="footer{display:none !important}",
|
406 |
+
theme=Applio(),
|
407 |
) as app:
|
408 |
gr.HTML("<h1><center> 🎵 Audio-Separator HF Demo 🎵 </center></h1>")
|
409 |
|
|
|
459 |
mdx23c_audio = gr.Audio(label="Input Audio", type="filepath")
|
460 |
with gr.Row():
|
461 |
mdx23c_button = gr.Button("Separate!", variant="primary")
|
462 |
+
with gr.Row(equal_height=True):
|
463 |
mdx23c_stem1 = gr.Audio(label="Stem 1", type="filepath", interactive=False)
|
464 |
mdx23c_stem2 = gr.Audio(label="Stem 2", type="filepath", interactive=False)
|
465 |
|
|
|
487 |
mdx_audio = gr.Audio(label="Input Audio", type="filepath")
|
488 |
with gr.Row():
|
489 |
mdx_button = gr.Button("Separate!", variant="primary")
|
490 |
+
with gr.Row(equal_height=True):
|
491 |
mdx_stem1 = gr.Audio(label="Stem 1", type="filepath", interactive=False)
|
492 |
mdx_stem2 = gr.Audio(label="Stem 2", type="filepath", interactive=False)
|
493 |
|
|
|
517 |
vr_audio = gr.Audio(label="Input Audio", type="filepath")
|
518 |
with gr.Row():
|
519 |
vr_button = gr.Button("Separate!", variant="primary")
|
520 |
+
with gr.Row(equal_height=True):
|
521 |
vr_stem1 = gr.Audio(label="Stem 1", type="filepath", interactive=False)
|
522 |
vr_stem2 = gr.Audio(label="Stem 2", type="filepath", interactive=False)
|
523 |
|
|
|
544 |
demucs_audio = gr.Audio(label="Input Audio", type="filepath")
|
545 |
with gr.Row():
|
546 |
demucs_button = gr.Button("Separate!", variant="primary")
|
547 |
+
with gr.Row(equal_height=True):
|
548 |
demucs_stem1 = gr.Audio(label="Stem 1", type="filepath", interactive=False)
|
549 |
demucs_stem2 = gr.Audio(label="Stem 2", type="filepath", interactive=False)
|
550 |
+
with gr.Row(equal_height=True):
|
551 |
demucs_stem3 = gr.Audio(label="Stem 3", type="filepath", interactive=False)
|
552 |
demucs_stem4 = gr.Audio(label="Stem 4", type="filepath", interactive=False)
|
553 |
+
with gr.Row(visible=False, equal_height=True) as stem6:
|
554 |
demucs_stem5 = gr.Audio(label="Stem 5", type="filepath", interactive=False)
|
555 |
demucs_stem6 = gr.Audio(label="Stem 6", type="filepath", interactive=False)
|
556 |
|
557 |
with gr.Tab("Settings"):
|
558 |
with gr.Group():
|
559 |
+
with gr.Row(equal_height=True):
|
560 |
model_file_dir = gr.Textbox(value="/tmp/audio-separator-models/", label="Directory to cache model files", info="The directory where model files are stored.", placeholder="/tmp/audio-separator-models/")
|
561 |
output_dir = gr.Textbox(value="output", label="File output directory", info="The directory where output files will be saved.", placeholder="output")
|
562 |
|
|
|
598 |
with gr.Tab("Credits"):
|
599 |
gr.Markdown(
|
600 |
"""
|
601 |
+
This Space created by **[Politrees](https://github.com/Bebra777228) forked by [NeoDev](https://github.com/TheNeodev)**.
|
602 |
* python-audio-separator by **[beveradb](https://github.com/beveradb)**.
|
603 |
"""
|
604 |
)
|