Spaces:
Runtime error
Runtime error
Piano Guitar
Browse files11 unmodified lines1213141516171816 unmodified lines35363738394016 unmodified lines57585960616211 unmodified linesos.makedirs("out", exist_ok=True)write('test.wav', audio[0], audio[1])command = "python3 -m demucs.separate -n mdx_extra_q -d cpu test.wav -o out"process = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)print("Demucs script output:", process.stdout.decode())16 unmodified lines"./out/mdx_extra_q/test/bass.wav","./out/mdx_extra_q/test/drums.wav","./out/mdx_extra_q/test/other.wav",]16 unmodified linesgr.components.Audio(type="filepath", label="Bass"),gr.components.Audio(type="filepath", label="Drums"),gr.components.Audio(type="filepath", label="Other"),],title=title,description=description,11 unmodified lines1213141516171816 unmodified lines353637383940414216 unmodified lines596061626364656611 unmodified linesos.makedirs("out", exist_ok=True)write('test.wav', audio[0], audio[1])command = "python3 -m demucs.separate -n htdemucs_6s -d cpu test.wav -o out"process = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)print("Demucs script output:", process.stdout.decode())16 unmodified lines"./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",]16 unmodified linesgr.components.Audio(type="filepath", label="Bass"),gr.components.Audio(type="filepath", label="Drums"),gr.components.Audio(type="filepath", label="Other"),gr.components.Audio(type="filepath", label="Piano"),gr.components.Audio(type="filepath", label="Guitar"),],title=title,description=description,
app.py+5-1