Spaces:
Running
Running
Ahsen Khaliq
commited on
Commit
•
01c8cea
1
Parent(s):
1d344dd
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from pathlib import Path
|
|
4 |
|
5 |
|
6 |
def inference(audio):
|
7 |
-
os.mkdir("out")
|
8 |
os.system("python3 -m demucs.separate -n demucs48_hq -d cpu " +audio.name+" -o out")
|
9 |
audioname = Path(audio.name).stem
|
10 |
return "./out/demucs48_hq/"+audioname+"/vocals.wav"
|
|
|
4 |
|
5 |
|
6 |
def inference(audio):
|
7 |
+
os.mkdir("out",exist_ok=True)
|
8 |
os.system("python3 -m demucs.separate -n demucs48_hq -d cpu " +audio.name+" -o out")
|
9 |
audioname = Path(audio.name).stem
|
10 |
return "./out/demucs48_hq/"+audioname+"/vocals.wav"
|