Spaces:
Running
Running
_Noxty
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -44,6 +44,12 @@ with gr.Blocks(title = "🎵 Audio Separator UI 🎵") as app:
|
|
44 |
value = lambda : None,
|
45 |
interactive = True
|
46 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
with gr.Column():
|
48 |
with gr.Accordion("Advanced settings", open = False):
|
49 |
with gr.Group():
|
@@ -99,32 +105,8 @@ with gr.Blocks(title = "🎵 Audio Separator UI 🎵") as app:
|
|
99 |
|
100 |
|
101 |
|
102 |
-
with gr.Column():
|
103 |
-
|
104 |
-
roformer_audio = gr.Audio(
|
105 |
-
label = "Input audio",
|
106 |
-
type = "filepath",
|
107 |
-
interactive = True
|
108 |
-
)
|
109 |
-
with gr.Accordion("Separation by link", open = False):
|
110 |
-
with gr.Row():
|
111 |
-
roformer_link = gr.Textbox(
|
112 |
-
label = "Link",
|
113 |
-
placeholder = "Paste the link here",
|
114 |
-
interactive = True
|
115 |
-
)
|
116 |
-
with gr.Row():
|
117 |
-
gr.Markdown("You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)")
|
118 |
-
with gr.Row():
|
119 |
-
roformer_download_button = gr.Button(
|
120 |
-
"Download!",
|
121 |
-
variant = "primary"
|
122 |
-
)
|
123 |
-
|
124 |
-
roformer_download_button.click(download_audio, [roformer_link], [roformer_audio])
|
125 |
-
|
126 |
|
127 |
-
|
128 |
|
129 |
with gr.Row():
|
130 |
roformer_button = gr.Button("Separate!", variant = "primary")
|
@@ -158,6 +140,12 @@ with gr.Blocks(title = "🎵 Audio Separator UI 🎵") as app:
|
|
158 |
value = lambda : None,
|
159 |
interactive = True
|
160 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
with gr.Accordion("Advanced settings", open = False):
|
162 |
with gr.Group():
|
163 |
with gr.Row():
|
@@ -214,29 +202,7 @@ with gr.Blocks(title = "🎵 Audio Separator UI 🎵") as app:
|
|
214 |
value = 0.1,
|
215 |
interactive = True
|
216 |
)
|
217 |
-
|
218 |
-
mdx23c_audio = gr.Audio(
|
219 |
-
label = "Input audio",
|
220 |
-
type = "filepath",
|
221 |
-
interactive = True
|
222 |
-
)
|
223 |
-
with gr.Accordion("Separation by link", open = False):
|
224 |
-
with gr.Row():
|
225 |
-
mdx23c_link = gr.Textbox(
|
226 |
-
label = "Link",
|
227 |
-
placeholder = "Paste the link here",
|
228 |
-
interactive = True
|
229 |
-
)
|
230 |
-
with gr.Row():
|
231 |
-
gr.Markdown("You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)")
|
232 |
-
with gr.Row():
|
233 |
-
mdx23c_download_button = gr.Button(
|
234 |
-
"Download!",
|
235 |
-
variant = "primary"
|
236 |
-
)
|
237 |
-
|
238 |
-
mdx23c_download_button.click(download_audio, [mdx23c_link], [mdx23c_audio])
|
239 |
-
|
240 |
|
241 |
with gr.Row():
|
242 |
mdx23c_button = gr.Button("Separate!", variant = "primary")
|
@@ -270,6 +236,12 @@ with gr.Blocks(title = "🎵 Audio Separator UI 🎵") as app:
|
|
270 |
value = lambda : None,
|
271 |
interactive = True
|
272 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
with gr.Accordion("Advanced settings", open = False):
|
274 |
with gr.Group():
|
275 |
with gr.Row():
|
@@ -335,29 +307,8 @@ with gr.Blocks(title = "🎵 Audio Separator UI 🎵") as app:
|
|
335 |
value = 0.1,
|
336 |
interactive = True
|
337 |
)
|
338 |
-
with gr.Row():
|
339 |
-
mdxnet_audio = gr.Audio(
|
340 |
-
label = "Input audio",
|
341 |
-
type = "filepath",
|
342 |
-
interactive = True
|
343 |
-
)
|
344 |
-
with gr.Accordion("Separation by link", open = False):
|
345 |
-
with gr.Row():
|
346 |
-
mdxnet_link = gr.Textbox(
|
347 |
-
label = "Link",
|
348 |
-
placeholder = "Paste the link here",
|
349 |
-
interactive = True
|
350 |
-
)
|
351 |
-
with gr.Row():
|
352 |
-
gr.Markdown("You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)")
|
353 |
-
with gr.Row():
|
354 |
-
mdxnet_download_button = gr.Button(
|
355 |
-
"Download!",
|
356 |
-
variant = "primary"
|
357 |
-
)
|
358 |
|
359 |
-
|
360 |
-
|
361 |
|
362 |
with gr.Row():
|
363 |
mdxnet_button = gr.Button("Separate!", variant = "primary")
|
@@ -391,6 +342,13 @@ with gr.Blocks(title = "🎵 Audio Separator UI 🎵") as app:
|
|
391 |
value = lambda : None,
|
392 |
interactive = True
|
393 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
394 |
with gr.Accordion("Advanced settings", open = False):
|
395 |
with gr.Group():
|
396 |
with gr.Row():
|
@@ -472,29 +430,7 @@ with gr.Blocks(title = "🎵 Audio Separator UI 🎵") as app:
|
|
472 |
value = 0.1,
|
473 |
interactive = True
|
474 |
)
|
475 |
-
|
476 |
-
vrarch_audio = gr.Audio(
|
477 |
-
label = "Input audio",
|
478 |
-
type = "filepath",
|
479 |
-
interactive = True
|
480 |
-
)
|
481 |
-
with gr.Accordion("Separation by link", open = False):
|
482 |
-
with gr.Row():
|
483 |
-
vrarch_link = gr.Textbox(
|
484 |
-
label = "Link",
|
485 |
-
placeholder = "Paste the link here",
|
486 |
-
interactive = True
|
487 |
-
)
|
488 |
-
with gr.Row():
|
489 |
-
gr.Markdown("You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)")
|
490 |
-
with gr.Row():
|
491 |
-
vrarch_download_button = gr.Button(
|
492 |
-
"Download!",
|
493 |
-
variant = "primary"
|
494 |
-
)
|
495 |
-
|
496 |
-
vrarch_download_button.click(download_audio, [vrarch_link], [vrarch_audio])
|
497 |
-
|
498 |
|
499 |
with gr.Row():
|
500 |
vrarch_button = gr.Button("Separate!", variant = "primary")
|
@@ -525,7 +461,13 @@ with gr.Blocks(title = "🎵 Audio Separator UI 🎵") as app:
|
|
525 |
demucs_output_format = gr.Dropdown(
|
526 |
label = "Select the output format",
|
527 |
choices = output_format,
|
528 |
-
value = lambda : None,
|
|
|
|
|
|
|
|
|
|
|
|
|
529 |
interactive = True
|
530 |
)
|
531 |
with gr.Accordion("Advanced settings", open = False):
|
@@ -593,19 +535,8 @@ with gr.Blocks(title = "🎵 Audio Separator UI 🎵") as app:
|
|
593 |
value = 0.1,
|
594 |
interactive = True
|
595 |
)
|
596 |
-
|
597 |
-
|
598 |
-
label = "Input audio",
|
599 |
-
type = "filepath",
|
600 |
-
interactive = True
|
601 |
-
)
|
602 |
-
with gr.Accordion("Separation by link", open = False):
|
603 |
-
with gr.Row():
|
604 |
-
demucs_link = gr.Textbox(
|
605 |
-
label = "Link",
|
606 |
-
placeholder = "Paste the link here",
|
607 |
-
interactive = True
|
608 |
-
)
|
609 |
with gr.Row():
|
610 |
gr.Markdown("You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)")
|
611 |
with gr.Row():
|
@@ -614,8 +545,7 @@ with gr.Blocks(title = "🎵 Audio Separator UI 🎵") as app:
|
|
614 |
variant = "primary"
|
615 |
)
|
616 |
|
617 |
-
|
618 |
-
|
619 |
|
620 |
|
621 |
|
@@ -684,8 +614,6 @@ with gr.Blocks(title = "🎵 Audio Separator UI 🎵") as app:
|
|
684 |
* python-audio-separator by [beveradb](https://github.com/beveradb).
|
685 |
* Thanks to [Mikus](https://github.com/cappuch) for the help with the code.
|
686 |
* Thanks to [Nick088](https://huggingface.co/Nick088) for the help to fix roformers.
|
687 |
-
* Thanks to [yt_dlp](https://github.com/yt-dlp/yt-dlp) devs.
|
688 |
-
* Separation by link source code and improvements by [_noxty](https://huggingface.co/theNeofr).
|
689 |
* Thanks to [ArisDev](https://github.com/aris-py) for porting UVR5 UI to Kaggle and improvements.
|
690 |
* Thanks to [Bebra777228](https://github.com/Bebra777228)'s code for guiding me to improve my code.
|
691 |
|
|
|
44 |
value = lambda : None,
|
45 |
interactive = True
|
46 |
)
|
47 |
+
with gr.Row():
|
48 |
+
roformer_audio = gr.Audio(
|
49 |
+
label = "Input audio",
|
50 |
+
type = "filepath",
|
51 |
+
interactive = True
|
52 |
+
)
|
53 |
with gr.Column():
|
54 |
with gr.Accordion("Advanced settings", open = False):
|
55 |
with gr.Group():
|
|
|
105 |
|
106 |
|
107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
|
109 |
+
|
110 |
|
111 |
with gr.Row():
|
112 |
roformer_button = gr.Button("Separate!", variant = "primary")
|
|
|
140 |
value = lambda : None,
|
141 |
interactive = True
|
142 |
)
|
143 |
+
with gr.Row():
|
144 |
+
mdx23c_audio = gr.Audio(
|
145 |
+
label = "Input audio",
|
146 |
+
type = "filepath",
|
147 |
+
interactive = True
|
148 |
+
)
|
149 |
with gr.Accordion("Advanced settings", open = False):
|
150 |
with gr.Group():
|
151 |
with gr.Row():
|
|
|
202 |
value = 0.1,
|
203 |
interactive = True
|
204 |
)
|
205 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
|
207 |
with gr.Row():
|
208 |
mdx23c_button = gr.Button("Separate!", variant = "primary")
|
|
|
236 |
value = lambda : None,
|
237 |
interactive = True
|
238 |
)
|
239 |
+
with gr.Row():
|
240 |
+
mdxnet_audio = gr.Audio(
|
241 |
+
label = "Input audio",
|
242 |
+
type = "filepath",
|
243 |
+
interactive = True
|
244 |
+
)
|
245 |
with gr.Accordion("Advanced settings", open = False):
|
246 |
with gr.Group():
|
247 |
with gr.Row():
|
|
|
307 |
value = 0.1,
|
308 |
interactive = True
|
309 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
310 |
|
311 |
+
|
|
|
312 |
|
313 |
with gr.Row():
|
314 |
mdxnet_button = gr.Button("Separate!", variant = "primary")
|
|
|
342 |
value = lambda : None,
|
343 |
interactive = True
|
344 |
)
|
345 |
+
with gr.Row():
|
346 |
+
vrarch_audio = gr.Audio(
|
347 |
+
label = "Input audio",
|
348 |
+
type = "filepath",
|
349 |
+
interactive = True
|
350 |
+
)
|
351 |
+
|
352 |
with gr.Accordion("Advanced settings", open = False):
|
353 |
with gr.Group():
|
354 |
with gr.Row():
|
|
|
430 |
value = 0.1,
|
431 |
interactive = True
|
432 |
)
|
433 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
|
435 |
with gr.Row():
|
436 |
vrarch_button = gr.Button("Separate!", variant = "primary")
|
|
|
461 |
demucs_output_format = gr.Dropdown(
|
462 |
label = "Select the output format",
|
463 |
choices = output_format,
|
464 |
+
value = lambda : None,
|
465 |
+
interactive = True
|
466 |
+
)
|
467 |
+
with gr.Row():
|
468 |
+
demucs_audio = gr.Audio(
|
469 |
+
label = "Input audio",
|
470 |
+
type = "filepath",
|
471 |
interactive = True
|
472 |
)
|
473 |
with gr.Accordion("Advanced settings", open = False):
|
|
|
535 |
value = 0.1,
|
536 |
interactive = True
|
537 |
)
|
538 |
+
|
539 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
540 |
with gr.Row():
|
541 |
gr.Markdown("You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)")
|
542 |
with gr.Row():
|
|
|
545 |
variant = "primary"
|
546 |
)
|
547 |
|
548 |
+
|
|
|
549 |
|
550 |
|
551 |
|
|
|
614 |
* python-audio-separator by [beveradb](https://github.com/beveradb).
|
615 |
* Thanks to [Mikus](https://github.com/cappuch) for the help with the code.
|
616 |
* Thanks to [Nick088](https://huggingface.co/Nick088) for the help to fix roformers.
|
|
|
|
|
617 |
* Thanks to [ArisDev](https://github.com/aris-py) for porting UVR5 UI to Kaggle and improvements.
|
618 |
* Thanks to [Bebra777228](https://github.com/Bebra777228)'s code for guiding me to improve my code.
|
619 |
|