Ahsen Khaliq
commited on
Commit
•
9a141af
1
Parent(s):
01c8cea
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from pathlib import Path
|
|
4 |
|
5 |
|
6 |
def inference(audio):
|
7 |
-
os.
|
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.makedirs("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"
|