hammammahdy
commited on
Commit
•
1260c40
1
Parent(s):
1e0268c
model load
Browse files- model_rf.joblib +3 -0
- prediction.py +4 -2
model_rf.joblib
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:01010408cdf751970fa144c6c002268a74d643f010eb1ccc06d4887085806a65
|
3 |
+
size 76271359
|
prediction.py
CHANGED
@@ -3,6 +3,7 @@ import pandas as pd
|
|
3 |
import numpy as np
|
4 |
import pickle
|
5 |
import json
|
|
|
6 |
from PIL import Image
|
7 |
|
8 |
def run():
|
@@ -64,12 +65,13 @@ def run():
|
|
64 |
submitted = st.button('Predict')
|
65 |
|
66 |
# load files
|
67 |
-
with open('model_rf.pkl', 'rb') as file_2:
|
68 |
-
|
69 |
with open('list_cat_cols.txt', 'rb') as file_3:
|
70 |
cat_cols = json.load(file_3)
|
71 |
with open('list_num_cols.txt', 'rb') as file_4:
|
72 |
num_cols = json.load(file_4)
|
|
|
73 |
|
74 |
|
75 |
data_inf = {
|
|
|
3 |
import numpy as np
|
4 |
import pickle
|
5 |
import json
|
6 |
+
import joblib
|
7 |
from PIL import Image
|
8 |
|
9 |
def run():
|
|
|
65 |
submitted = st.button('Predict')
|
66 |
|
67 |
# load files
|
68 |
+
# with open('model_rf.pkl', 'rb') as file_2:
|
69 |
+
# model = pickle.load(file_2)
|
70 |
with open('list_cat_cols.txt', 'rb') as file_3:
|
71 |
cat_cols = json.load(file_3)
|
72 |
with open('list_num_cols.txt', 'rb') as file_4:
|
73 |
num_cols = json.load(file_4)
|
74 |
+
model = joblib.load('model_rf.joblib')
|
75 |
|
76 |
|
77 |
data_inf = {
|