plutoa386 commited on
Commit
d100b13
·
1 Parent(s): bbc1725

fixed audio prediction incorrectly using the lifestyle model facepalm

Browse files
Files changed (1) hide show
  1. crew.py +1 -1
crew.py CHANGED
@@ -79,7 +79,7 @@ def calculate_dementia_risk_audio(docID: str, return_json: bool = False) -> Unio
79
  dmat = DMatrix(audio_array)
80
 
81
  # Predict
82
- prediction = lifestyle_model.predict(dmat)[0]
83
  # For confidence
84
  try:
85
  # If model supports predict_proba (e.g., scikit-learn wrapper), use it
 
79
  dmat = DMatrix(audio_array)
80
 
81
  # Predict
82
+ prediction = audio_model.predict(dmat)[0]
83
  # For confidence
84
  try:
85
  # If model supports predict_proba (e.g., scikit-learn wrapper), use it