Spaces:
Sleeping
Sleeping
update app.py
Browse files
app.py
CHANGED
|
@@ -7,11 +7,11 @@ import joblib
|
|
| 7 |
from PIL import Image
|
| 8 |
|
| 9 |
#using joblib to load the model:
|
| 10 |
-
num_imputer = joblib.load('
|
| 11 |
-
cat_imputer = joblib.load('
|
| 12 |
-
encoder = joblib.load('
|
| 13 |
-
scaler = joblib.load('
|
| 14 |
-
model = joblib.load('
|
| 15 |
|
| 16 |
|
| 17 |
# Create a function that applies the ML pipeline and makes predictions
|
|
|
|
| 7 |
from PIL import Image
|
| 8 |
|
| 9 |
#using joblib to load the model:
|
| 10 |
+
num_imputer = joblib.load('num_imputer.joblib') # loading the imputer
|
| 11 |
+
cat_imputer = joblib.load('cat_imputer.joblib') # loading the imputer
|
| 12 |
+
encoder = joblib.load('encoder.joblib') # loading the encoder
|
| 13 |
+
scaler = joblib.load('scaler.joblib') # loading the scaler
|
| 14 |
+
model = joblib.load('ml.joblib') # loading the model
|
| 15 |
|
| 16 |
|
| 17 |
# Create a function that applies the ML pipeline and makes predictions
|