mnurbani commited on
Commit
e5f994d
·
verified ·
1 Parent(s): 754fdf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -1,12 +1,16 @@
1
  import streamlit as st
2
  import joblib
3
  import pandas as pd
 
4
 
5
  # Load model from file
6
- model_path = 'joblibmodel_rfbest_pipe_rfbest_pipe_rfbest_pipe_rf.pkl'
 
 
 
 
7
  with open(model_path, 'rb') as file:
8
- model = joblib.load(file)
9
-
10
  # model_path = 'joblibmodel_rfbest_pipe_rfbest_pipe_rfbest_pipe_rf.pkl'
11
  # model = joblib.load(model_path)
12
 
 
1
  import streamlit as st
2
  import joblib
3
  import pandas as pd
4
+ import pickle
5
 
6
  # Load model from file
7
+ # model_path = 'joblibmodel_rfbest_pipe_rfbest_pipe_rfbest_pipe_rf.pkl'
8
+ # with open(model_path, 'rb') as file:
9
+ # model = joblib.load(file)
10
+ # Load model from file
11
+ model_path = 'model_rfbest_pipe_rfbest_pipe_rfbest_pipe_rf.pkl'
12
  with open(model_path, 'rb') as file:
13
+ model = pickle.load(file)
 
14
  # model_path = 'joblibmodel_rfbest_pipe_rfbest_pipe_rfbest_pipe_rf.pkl'
15
  # model = joblib.load(model_path)
16