HOLYBOY commited on
Commit
8dd8348
1 Parent(s): 958348e

changed import paths to match those on HF

Browse files
Files changed (1) hide show
  1. app.py +11 -5
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):