HOLYBOY commited on
Commit
e210701
1 Parent(s): 88cbe43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -8,14 +8,13 @@ import time
8
  import matplotlib.pyplot as plt
9
  from io import BytesIO
10
 
11
- pipepline=pipeline(task='Churn_prediction',model="lr_smote_model")
12
 
13
 
14
- #num_imputer = joblib.load('C:/Users/user/Desktop/AZUBI AFRICA/SecondPhase/Churn_Prediction_ML/Capstone_Churn_Prediction/models/numerical_imputer.joblib')
15
- #cat_imputer = joblib.load('C:/Users/user/Desktop/AZUBI AFRICA/SecondPhase/Churn_Prediction_ML/Capstone_Churn_Prediction/models/cat_imputer.joblib')
16
- #encoder = joblib.load('C:/Users/user/Desktop/AZUBI AFRICA/SecondPhase/Churn_Prediction_ML/Capstone_Churn_Prediction/models/encoder.joblib')
17
- #scaler = joblib.load('C:/Users/user/Desktop/AZUBI AFRICA/SecondPhase/Churn_Prediction_ML/Capstone_Churn_Prediction/models/scaler.joblib')
18
- #lr_model = joblib.load('C:/Users/user/Desktop/AZUBI AFRICA/SecondPhase/Churn_Prediction_ML/Capstone_Churn_Prediction/models/lr_smote_model.joblib')
19
 
20
 
21
  def preprocess_input(input_data):
 
8
  import matplotlib.pyplot as plt
9
  from io import BytesIO
10
 
 
11
 
12
 
13
+ num_imputer = joblib.load('C:/Users/user/Desktop/AZUBI AFRICA/SecondPhase/Churn_Prediction_ML/Capstone_Churn_Prediction/models/numerical_imputer.joblib')
14
+ cat_imputer = joblib.load('C:/Users/user/Desktop/AZUBI AFRICA/SecondPhase/Churn_Prediction_ML/Capstone_Churn_Prediction/models/cat_imputer.joblib')
15
+ encoder = joblib.load('C:/Users/user/Desktop/AZUBI AFRICA/SecondPhase/Churn_Prediction_ML/Capstone_Churn_Prediction/models/encoder.joblib')
16
+ scaler = joblib.load('C:/Users/user/Desktop/AZUBI AFRICA/SecondPhase/Churn_Prediction_ML/Capstone_Churn_Prediction/models/scaler.joblib')
17
+ lr_model = joblib.load('C:/Users/user/Desktop/AZUBI AFRICA/SecondPhase/Churn_Prediction_ML/Capstone_Churn_Prediction/models/lr_smote_model.joblib')
18
 
19
 
20
  def preprocess_input(input_data):