Thafx commited on
Commit
d90bee2
1 Parent(s): fcd96a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 htdemucs_ft --two-stems=vocals -d cpu test.wav -o out")
10
- return "./out/htdemucs_ft/test/vocals.wav","./out/htdemucs_ft/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."
 
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."