HOLYBOY commited on
Commit
d02e72c
1 Parent(s): c7a1dca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -8,11 +8,14 @@ import time
8
  import matplotlib.pyplot as plt
9
  from io import BytesIO
10
 
11
- num_imputer = joblib.load('https://huggingface.co/HOLYBOY/LogisticRegression/blob/main/numerical_imputer.joblib')
12
- cat_imputer = joblib.load('https://huggingface.co/HOLYBOY/LogisticRegression/blob/main/cat_imputer.joblib')
13
- encoder = joblib.load('https://huggingface.co/HOLYBOY/LogisticRegression/blob/main/encoder.joblib')
14
- scaler = joblib.load('https://huggingface.co/HOLYBOY/LogisticRegression/blob/main/scaler.joblib')
15
- lr_model = joblib.load('https://huggingface.co/HOLYBOY/LogisticRegression/blob/main/lr_smote_model.joblib')
 
 
 
16
 
17
 
18
  def preprocess_input(input_data):
 
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('https://huggingface.co/HOLYBOY/LogisticRegression/blob/main/numerical_imputer.joblib')
15
+ #cat_imputer = joblib.load('https://huggingface.co/HOLYBOY/LogisticRegression/blob/main/cat_imputer.joblib')
16
+ #encoder = joblib.load('https://huggingface.co/HOLYBOY/LogisticRegression/blob/main/encoder.joblib')
17
+ #scaler = joblib.load('https://huggingface.co/HOLYBOY/LogisticRegression/blob/main/scaler.joblib')
18
+ #lr_model = joblib.load('https://huggingface.co/HOLYBOY/LogisticRegression/blob/main/lr_smote_model.joblib')
19
 
20
 
21
  def preprocess_input(input_data):