Sutirtha commited on
Commit
232d8ce
·
1 Parent(s): 57c6cf0

updated htdemucs_6s paths

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -18,7 +18,7 @@ def inference(audio):
18
 
19
  os.makedirs("out", exist_ok=True)
20
  write('test.wav', audio[0], audio[1])
21
- result = os.system("python3 -m demucs.separate -n mdx_extra_q -d cpu test.wav -o out")
22
  print(f"Demucs script result: {result}")
23
 
24
  # Initialize the Separator with the audio file and model name
@@ -29,14 +29,14 @@ def inference(audio):
29
  print(f'Secondary stem saved at {secondary_stem_path}')
30
 
31
  # Check if files exist before returning
32
- files = ["./out/mdx_extra_q/test/vocals.wav",
33
  secondary_stem_path,
34
  primary_stem_path,
35
- "./out/mdx_extra_q/test/bass.wav",
36
- "./out/mdx_extra_q/test/drums.wav",
37
- "./out/mdx_extra_q/test/other.wav",
38
- "./out/mdx_extra_q/test/piano.wav",
39
- "./out/mdx_extra_q/test/guitar.wav",
40
  ]
41
 
42
 
 
18
 
19
  os.makedirs("out", exist_ok=True)
20
  write('test.wav', audio[0], audio[1])
21
+ result = os.system("python3 -m demucs.separate -n htdemucs_6s -d cpu test.wav -o out")
22
  print(f"Demucs script result: {result}")
23
 
24
  # Initialize the Separator with the audio file and model name
 
29
  print(f'Secondary stem saved at {secondary_stem_path}')
30
 
31
  # Check if files exist before returning
32
+ files = ["./out/htdemucs_6s/test/vocals.wav",
33
  secondary_stem_path,
34
  primary_stem_path,
35
+ "./out/htdemucs_6s/test/bass.wav",
36
+ "./out/htdemucs_6s/test/drums.wav",
37
+ "./out/htdemucs_6s/test/other.wav",
38
+ "./out/htdemucs_6s/test/piano.wav",
39
+ "./out/htdemucs_6s/test/guitar.wav",
40
  ]
41
 
42