mnurbani commited on
Commit
abd7302
·
verified ·
1 Parent(s): 7fae891

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -3,10 +3,10 @@ import pickle
3
  import pandas as pd
4
 
5
  # Load model from file
6
- model_path = 'model_rfbest_pipe_rfbest_pipe_rfbest_pipe_rf.pkl'
7
- with open(model_path, 'rb') as file:
8
- model = pickle.load(file)
9
-
10
  # Judul aplikasi
11
  st.title("Prediksi Churn Pelanggan")
12
 
 
3
  import pandas as pd
4
 
5
  # Load model from file
6
+ # model_path = 'model_rfbest_pipe_rfbest_pipe_rfbest_pipe_rf.pkl'
7
+ # with open(model_path, 'rb') as file:
8
+ # model = pickle.load(file)
9
+ model = joblib.load('model_rfbest_pipe_rfbest_pipe_rfbest_pipe_rf.pkl')
10
  # Judul aplikasi
11
  st.title("Prediksi Churn Pelanggan")
12