Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,7 @@ def predict_hemoglobin(age, gender, image):
|
|
110 |
features_df = pd.DataFrame([features])
|
111 |
|
112 |
# Load the trained model, scaler, and label encoder
|
113 |
-
svr_model = joblib.load('svr_model(1).pkl') # Replace with the actual path to your model file
|
114 |
scaler = joblib.load('minmax_scaler.pkl') # Replace with the actual path to your scaler file
|
115 |
|
116 |
# Ensure that features_df matches the expected training feature set (without 'Hgb')
|
|
|
110 |
features_df = pd.DataFrame([features])
|
111 |
|
112 |
# Load the trained model, scaler, and label encoder
|
113 |
+
svr_model = joblib.load('svr_model (1).pkl') # Replace with the actual path to your model file
|
114 |
scaler = joblib.load('minmax_scaler.pkl') # Replace with the actual path to your scaler file
|
115 |
|
116 |
# Ensure that features_df matches the expected training feature set (without 'Hgb')
|