Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,8 @@ from scipy.io.wavfile import write
|
|
6 |
def inference(audio):
|
7 |
os.makedirs("out", exist_ok=True)
|
8 |
write('test.wav', audio[0], audio[1])
|
9 |
-
os.system("python3 -m demucs.separate -n
|
10 |
-
return "./out/
|
11 |
|
12 |
title = "Demucs"
|
13 |
description = "Forked from https://huggingface.co/spaces/akhaliq/demucs/. updated demucs source to bleeding edge. switched model to demucs_ft for best quality. | Gradio demo for Demucs: Music Source Separation in the Waveform Domain. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below."
|
|
|
6 |
def inference(audio):
|
7 |
os.makedirs("out", exist_ok=True)
|
8 |
write('test.wav', audio[0], audio[1])
|
9 |
+
os.system("python3 -m demucs.separate -n htdemucs --two-stems=vocals -d cpu test.wav -o out")
|
10 |
+
return "./out/htdemucs/test/vocals.wav","./out/htdemucs/test/no_vocals.wav"
|
11 |
|
12 |
title = "Demucs"
|
13 |
description = "Forked from https://huggingface.co/spaces/akhaliq/demucs/. updated demucs source to bleeding edge. switched model to demucs_ft for best quality. | Gradio demo for Demucs: Music Source Separation in the Waveform Domain. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below."
|