fixed audio prediction incorrectly using the lifestyle model facepalm
Browse files
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 =
|
| 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
|