JacobLinCool commited on
Commit
385c19b
1 Parent(s): 771996d

fix: demucs import

Browse files
Files changed (1) hide show
  1. app/infer.py +2 -2
app/infer.py CHANGED
@@ -1,7 +1,7 @@
1
  from glob import glob
2
  import os
3
  from typing import Tuple
4
- import demucs
5
  import gradio as gr
6
  import numpy as np
7
  import soundfile as sf
@@ -24,7 +24,7 @@ def infer(exp_dir: str, original_audio: str, f0add: int) -> Tuple[int, np.ndarra
24
 
25
  base = os.path.basename(original_audio)
26
  base = os.path.splitext(base)[0]
27
- demucs.separate.main(
28
  ["--two-stems", "vocals", "-d", str(device), "-n", "htdemucs", original_audio]
29
  )
30
  out = os.path.join("separated", "htdemucs", base, "vocals.wav")
 
1
  from glob import glob
2
  import os
3
  from typing import Tuple
4
+ from demucs.separate import main as demucs
5
  import gradio as gr
6
  import numpy as np
7
  import soundfile as sf
 
24
 
25
  base = os.path.basename(original_audio)
26
  base = os.path.splitext(base)[0]
27
+ demucs(
28
  ["--two-stems", "vocals", "-d", str(device), "-n", "htdemucs", original_audio]
29
  )
30
  out = os.path.join("separated", "htdemucs", base, "vocals.wav")