Spaces:
Runtime error
Runtime error
cuda
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def inference(audio):
|
|
| 12 |
|
| 13 |
try:
|
| 14 |
# Using subprocess.run for better control
|
| 15 |
-
command = f"python3 -m demucs.separate -n htdemucs_6s -d
|
| 16 |
process = subprocess.run(command, shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
| 17 |
print("Demucs script output:", process.stdout.decode())
|
| 18 |
except subprocess.CalledProcessError as e:
|
|
|
|
| 12 |
|
| 13 |
try:
|
| 14 |
# Using subprocess.run for better control
|
| 15 |
+
command = f"python3 -m demucs.separate -n htdemucs_6s -d cuda {audio_path} -o out"
|
| 16 |
process = subprocess.run(command, shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
| 17 |
print("Demucs script output:", process.stdout.decode())
|
| 18 |
except subprocess.CalledProcessError as e:
|