Sutirtha commited on
Commit
22d8b0e
·
1 Parent(s): 7464192
Files changed (1) hide show
  1. app.py +1 -1
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 gpu {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:
 
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: