Spaces:
Runtime error
Runtime error
updated htdemucs_6s paths
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def inference(audio):
|
|
| 18 |
|
| 19 |
os.makedirs("out", exist_ok=True)
|
| 20 |
write('test.wav', audio[0], audio[1])
|
| 21 |
-
result = os.system("python3 -m demucs.separate -n
|
| 22 |
print(f"Demucs script result: {result}")
|
| 23 |
|
| 24 |
# Initialize the Separator with the audio file and model name
|
|
@@ -29,14 +29,14 @@ def inference(audio):
|
|
| 29 |
print(f'Secondary stem saved at {secondary_stem_path}')
|
| 30 |
|
| 31 |
# Check if files exist before returning
|
| 32 |
-
files = ["./out/
|
| 33 |
secondary_stem_path,
|
| 34 |
primary_stem_path,
|
| 35 |
-
"./out/
|
| 36 |
-
"./out/
|
| 37 |
-
"./out/
|
| 38 |
-
"./out/
|
| 39 |
-
"./out/
|
| 40 |
]
|
| 41 |
|
| 42 |
|
|
|
|
| 18 |
|
| 19 |
os.makedirs("out", exist_ok=True)
|
| 20 |
write('test.wav', audio[0], audio[1])
|
| 21 |
+
result = os.system("python3 -m demucs.separate -n htdemucs_6s -d cpu test.wav -o out")
|
| 22 |
print(f"Demucs script result: {result}")
|
| 23 |
|
| 24 |
# Initialize the Separator with the audio file and model name
|
|
|
|
| 29 |
print(f'Secondary stem saved at {secondary_stem_path}')
|
| 30 |
|
| 31 |
# Check if files exist before returning
|
| 32 |
+
files = ["./out/htdemucs_6s/test/vocals.wav",
|
| 33 |
secondary_stem_path,
|
| 34 |
primary_stem_path,
|
| 35 |
+
"./out/htdemucs_6s/test/bass.wav",
|
| 36 |
+
"./out/htdemucs_6s/test/drums.wav",
|
| 37 |
+
"./out/htdemucs_6s/test/other.wav",
|
| 38 |
+
"./out/htdemucs_6s/test/piano.wav",
|
| 39 |
+
"./out/htdemucs_6s/test/guitar.wav",
|
| 40 |
]
|
| 41 |
|
| 42 |
|