Spaces:
Sleeping
Sleeping
changed import paths to match those on HF
Browse files
app.py
CHANGED
@@ -10,11 +10,17 @@ from io import BytesIO
|
|
10 |
|
11 |
|
12 |
|
13 |
-
num_imputer = joblib.load('C:/Users/user/Desktop/Churn_Prediction_ML/models/numerical_imputer.joblib')
|
14 |
-
cat_imputer = joblib.load('C:/Users/user/Desktop/Churn_Prediction_ML/models/cat_imputer.joblib')
|
15 |
-
encoder = joblib.load('C:/Users/user/Desktop/Churn_Prediction_ML/models/encoder.joblib')
|
16 |
-
scaler = joblib.load('C:/Users/user/Desktop/Churn_Prediction_ML/models/scaler.joblib')
|
17 |
-
lr_model = joblib.load('C:/Users/user/Desktop/Churn_Prediction_ML/models/lr_smote_model.joblib')
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
|
20 |
def preprocess_input(input_data):
|
|
|
10 |
|
11 |
|
12 |
|
13 |
+
# num_imputer = joblib.load('C:/Users/user/Desktop/Churn_Prediction_ML/models/numerical_imputer.joblib')
|
14 |
+
# cat_imputer = joblib.load('C:/Users/user/Desktop/Churn_Prediction_ML/models/cat_imputer.joblib')
|
15 |
+
# encoder = joblib.load('C:/Users/user/Desktop/Churn_Prediction_ML/models/encoder.joblib')
|
16 |
+
# scaler = joblib.load('C:/Users/user/Desktop/Churn_Prediction_ML/models/scaler.joblib')
|
17 |
+
# lr_model = joblib.load('C:/Users/user/Desktop/Churn_Prediction_ML/models/lr_smote_model.joblib')
|
18 |
+
|
19 |
+
num_imputer = joblib.load('numerical_imputer.joblib')
|
20 |
+
cat_imputer = joblib.load('cat_imputer.joblib')
|
21 |
+
encoder = joblib.load('encoder.joblib')
|
22 |
+
scaler = joblib.load('scaler.joblib')
|
23 |
+
lr_model = joblib.load('lr_smote_model.joblib')
|
24 |
|
25 |
|
26 |
def preprocess_input(input_data):
|