niol08 commited on
Commit
773db33
·
verified ·
1 Parent(s): 78bfb81

Update src/model_loader.py

Browse files
Files changed (1) hide show
  1. src/model_loader.py +3 -3
src/model_loader.py CHANGED
@@ -18,7 +18,7 @@ def load_mitbih_model():
18
 
19
  def load_pcg_model():
20
 
21
- model_path = Path("pcg_model.h5")
22
  if not model_path.exists():
23
  raise FileNotFoundError(f"PCG model not found at {model_path.resolve()}")
24
 
@@ -28,7 +28,7 @@ def load_pcg_model():
28
 
29
  def load_emg_model():
30
 
31
- model_path = Path("emg_classifier_txt.h5")
32
  if not model_path.exists():
33
  raise FileNotFoundError(f"EMG model not found at {model_path.resolve()}")
34
  model = load_model(model_path, compile=False)
@@ -38,7 +38,7 @@ def load_emg_model():
38
 
39
  def load_vag_model():
40
 
41
- p = Path("vag_feature_classifier.pkl")
42
  if not p.exists():
43
  raise FileNotFoundError(f"No VAG model at {p.resolve()}")
44
  return joblib.load(p)
 
18
 
19
  def load_pcg_model():
20
 
21
+ model_path = Path("src/pcg_model.h5")
22
  if not model_path.exists():
23
  raise FileNotFoundError(f"PCG model not found at {model_path.resolve()}")
24
 
 
28
 
29
  def load_emg_model():
30
 
31
+ model_path = Path("src/emg_classifier_txt.h5")
32
  if not model_path.exists():
33
  raise FileNotFoundError(f"EMG model not found at {model_path.resolve()}")
34
  model = load_model(model_path, compile=False)
 
38
 
39
  def load_vag_model():
40
 
41
+ p = Path("src/vag_feature_classifier.pkl")
42
  if not p.exists():
43
  raise FileNotFoundError(f"No VAG model at {p.resolve()}")
44
  return joblib.load(p)