Spaces:
Runtime error
Runtime error
updated htdemucs_6s paths
Browse files17 unmodified lines181920212223244 unmodified lines293031323334353637383940414217 unmodified linesos.makedirs("out", exist_ok=True)write('test.wav', audio[0], audio[1])result = os.system("python3 -m demucs.separate -n mdx_extra_q -d cpu test.wav -o out")print(f"Demucs script result: {result}")# Initialize the Separator with the audio file and model name4 unmodified linesprint(f'Secondary stem saved at {secondary_stem_path}')# Check if files exist before returningfiles = ["./out/mdx_extra_q/test/vocals.wav",secondary_stem_path,primary_stem_path,"./out/mdx_extra_q/test/bass.wav","./out/mdx_extra_q/test/drums.wav","./out/mdx_extra_q/test/other.wav","./out/mdx_extra_q/test/piano.wav","./out/mdx_extra_q/test/guitar.wav",]17 unmodified lines181920212223244 unmodified lines293031323334353637383940414217 unmodified linesos.makedirs("out", exist_ok=True)write('test.wav', audio[0], audio[1])result = os.system("python3 -m demucs.separate -n htdemucs_6s -d cpu test.wav -o out")print(f"Demucs script result: {result}")# Initialize the Separator with the audio file and model name4 unmodified linesprint(f'Secondary stem saved at {secondary_stem_path}')# Check if files exist before returningfiles = ["./out/htdemucs_6s/test/vocals.wav",secondary_stem_path,primary_stem_path,"./out/htdemucs_6s/test/bass.wav","./out/htdemucs_6s/test/drums.wav","./out/htdemucs_6s/test/other.wav","./out/htdemucs_6s/test/piano.wav","./out/htdemucs_6s/test/guitar.wav",]
app.py+7-7