Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
from scipy.io.wavfile import write
|
4 |
-
|
5 |
|
6 |
def inference(audio):
|
7 |
os.makedirs("out", exist_ok=True)
|
@@ -15,10 +15,16 @@ description = "Forked from here https://huggingface.co/spaces/akhaliq/demucs/ an
|
|
15 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1911.13254' target='_blank'>Music Source Separation in the Waveform Domain</a> | <a href='https://github.com/facebookresearch/demucs' target='_blank'>Github Repo</a></p>"
|
16 |
|
17 |
examples=[['test.mp3']]
|
|
|
18 |
gr.Interface(
|
19 |
inference,
|
20 |
-
|
21 |
-
[
|
|
|
|
|
|
|
|
|
|
|
22 |
title=title,
|
23 |
description=description,
|
24 |
article=article,
|
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
from scipy.io.wavfile import write
|
4 |
+
from gradio import components
|
5 |
|
6 |
def inference(audio):
|
7 |
os.makedirs("out", exist_ok=True)
|
|
|
15 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1911.13254' target='_blank'>Music Source Separation in the Waveform Domain</a> | <a href='https://github.com/facebookresearch/demucs' target='_blank'>Github Repo</a></p>"
|
16 |
|
17 |
examples=[['test.mp3']]
|
18 |
+
|
19 |
gr.Interface(
|
20 |
inference,
|
21 |
+
components.Audio(type="numpy", label="Input"),
|
22 |
+
[
|
23 |
+
components.Audio(type="filepath", label="Vocals"),
|
24 |
+
components.Audio(type="filepath", label="Bass"),
|
25 |
+
components.Audio(type="filepath", label="Drums"),
|
26 |
+
components.Audio(type="filepath", label="Other")
|
27 |
+
],
|
28 |
title=title,
|
29 |
description=description,
|
30 |
article=article,
|