Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
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):
|