Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -239,13 +239,13 @@ def voice_extract_demucs(audio):
|
|
| 239 |
Returns the path of the voice extracted file.
|
| 240 |
"""
|
| 241 |
try:
|
| 242 |
-
os.makedirs("
|
| 243 |
-
|
| 244 |
cmd = [
|
| 245 |
"demucs",
|
| 246 |
"--two-stems=vocals",
|
| 247 |
-
"--out", "
|
| 248 |
-
|
| 249 |
]
|
| 250 |
subprocess.run(cmd, check=True)
|
| 251 |
voice_path = os.path.join(".", "demucs", "htdemucs", "audio_file", "vocals.wav")
|
|
|
|
| 239 |
Returns the path of the voice extracted file.
|
| 240 |
"""
|
| 241 |
try:
|
| 242 |
+
os.makedirs("out_demucs", exist_ok=True)
|
| 243 |
+
|
| 244 |
cmd = [
|
| 245 |
"demucs",
|
| 246 |
"--two-stems=vocals",
|
| 247 |
+
"--out", "out_demucs",
|
| 248 |
+
audio
|
| 249 |
]
|
| 250 |
subprocess.run(cmd, check=True)
|
| 251 |
voice_path = os.path.join(".", "demucs", "htdemucs", "audio_file", "vocals.wav")
|