abidlabs HF staff commited on
Commit
2dbf15b
1 Parent(s): a3b5b38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ 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 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 Music Source Separation (v4)"
 
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 test.wav -o out")
10
  return "./out/htdemucs/test/vocals.wav","./out/htdemucs/test/no_vocals.wav"
11
 
12
  title = "Demucs Music Source Separation (v4)"