roychao19477 commited on
Commit
0efa60f
·
1 Parent(s): 612bb0f
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -10,6 +10,8 @@ def install_mamba():
10
  subprocess.run(shlex.split("pip install https://github.com/state-spaces/mamba/releases/download/v2.2.2/mamba_ssm-2.2.2+cu122torch2.3cxx11abiFALSE-cp310-cp310-linux_x86_64.whl"))
11
  subprocess.run(shlex.split("pip install numpy==1.26.4"))
12
 
 
 
13
 
14
  install_mamba()
15
 
@@ -24,10 +26,14 @@ from models.generator import SEMamba
24
  from models.pcs400 import cal_pcs
25
 
26
  # download model files from your HF repo
27
- ckpt = hf_hub_download("rc19477/Speech_Enhancement_Mamba",
28
- "ckpts/SEMamba_advanced.pth")
29
- cfg_f = hf_hub_download("rc19477/Speech_Enhancement_Mamba",
30
- "recipes/SEMamba_advanced.yaml")
 
 
 
 
31
 
32
  # load config
33
  with open(cfg_f) as f:
 
10
  subprocess.run(shlex.split("pip install https://github.com/state-spaces/mamba/releases/download/v2.2.2/mamba_ssm-2.2.2+cu122torch2.3cxx11abiFALSE-cp310-cp310-linux_x86_64.whl"))
11
  subprocess.run(shlex.split("pip install numpy==1.26.4"))
12
 
13
+ subprocess.run(shlex.split("ls"))
14
+
15
 
16
  install_mamba()
17
 
 
26
  from models.pcs400 import cal_pcs
27
 
28
  # download model files from your HF repo
29
+ #ckpt = hf_hub_download("rc19477/Speech_Enhancement_Mamba",
30
+ # "ckpts/SEMamba_advanced.pth")
31
+ #cfg_f = hf_hub_download("rc19477/Speech_Enhancement_Mamba",
32
+ # "recipes/SEMamba_advanced.yaml")
33
+
34
+ ckpt = "ckpts/SEMamba_advanced.pth"
35
+ cfg_f = "recipes/SEMamba_advanced.yaml"
36
+
37
 
38
  # load config
39
  with open(cfg_f) as f: