nakas commited on
Commit
5ae4abe
1 Parent(s): cbb2165

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -12,6 +12,8 @@ import torch
12
  import gradio as gr
13
  import pydub
14
 
 
 
15
  from audiocraft.data.audio_utils import convert_audio
16
  from audiocraft.data.audio import audio_write
17
  from audiocraft.models import MusicGen
@@ -169,7 +171,7 @@ def inference(audio):
169
  write('test.wav', audio[0], audio[1])
170
 
171
  command = "python3 -m demucs.separate -n mdx_extra_q -d cpu test.wav -o out"
172
- process = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
173
  print("Demucs script output:", process.stdout.decode())
174
 
175
  os.makedirs("out", exist_ok=True)
 
12
  import gradio as gr
13
  import pydub
14
 
15
+
16
+
17
  from audiocraft.data.audio_utils import convert_audio
18
  from audiocraft.data.audio import audio_write
19
  from audiocraft.models import MusicGen
 
171
  write('test.wav', audio[0], audio[1])
172
 
173
  command = "python3 -m demucs.separate -n mdx_extra_q -d cpu test.wav -o out"
174
+ process = sp.run(command, shell=True, stdout=sp.PIPE, stderr=sp.PIPE)
175
  print("Demucs script output:", process.stdout.decode())
176
 
177
  os.makedirs("out", exist_ok=True)