Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def run_demucs(audio_path, selected_stems, model_name=DEFAULT_MODEL):
|
|
16 |
logger.info(f"Running Demucs on {audio_path}")
|
17 |
output_dir = tempfile.mkdtemp()
|
18 |
|
19 |
-
cmd = f"
|
20 |
logger.info(f"Executing command: {cmd}")
|
21 |
|
22 |
process = subprocess.Popen(
|
|
|
16 |
logger.info(f"Running Demucs on {audio_path}")
|
17 |
output_dir = tempfile.mkdtemp()
|
18 |
|
19 |
+
cmd = f"{sys.executable} -m demucs -n {model_name} -o {output_dir} \"{audio_path}\""
|
20 |
logger.info(f"Executing command: {cmd}")
|
21 |
|
22 |
process = subprocess.Popen(
|