Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
4c91464
1
Parent(s):
1f05b33
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ def inference(audio):
|
|
8 |
os.makedirs("out", exist_ok=True)
|
9 |
#oldext = os.path.splitext(audio)[1]
|
10 |
#os.rename(audio.name, "audio" + oldext)
|
11 |
-
write('test.wav',
|
12 |
os.system("python3 -m demucs.separate -n demucs48_hq -d cpu test.wav -o out")
|
13 |
#audioname = Path(audio.name).stem
|
14 |
return "./out/demucs48_hq/audio/vocals.wav"
|
|
|
8 |
os.makedirs("out", exist_ok=True)
|
9 |
#oldext = os.path.splitext(audio)[1]
|
10 |
#os.rename(audio.name, "audio" + oldext)
|
11 |
+
write('test.wav', audio[1], audio[0])
|
12 |
os.system("python3 -m demucs.separate -n demucs48_hq -d cpu test.wav -o out")
|
13 |
#audioname = Path(audio.name).stem
|
14 |
return "./out/demucs48_hq/audio/vocals.wav"
|