Spaces:
Runtime error
Runtime error
PongsakornSET
commited on
Commit
·
c7d4eb9
1
Parent(s):
d678424
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import joblib
|
2 |
import pandas as pd
|
3 |
-
|
4 |
|
5 |
EDU_DICT = {'Preschool': 1,
|
6 |
'1st-4th': 2,
|
@@ -20,8 +20,8 @@ EDU_DICT = {'Preschool': 1,
|
|
20 |
'Doctorate': 16
|
21 |
}
|
22 |
|
23 |
-
model = #
|
24 |
-
unique_values = #
|
25 |
|
26 |
unique_class = unique_values["workclass"]
|
27 |
unique_education = unique_values["education"]
|
|
|
1 |
import joblib
|
2 |
import pandas as pd
|
3 |
+
import streamlit as st
|
4 |
|
5 |
EDU_DICT = {'Preschool': 1,
|
6 |
'1st-4th': 2,
|
|
|
20 |
'Doctorate': 16
|
21 |
}
|
22 |
|
23 |
+
model = joblib.load('model.joblib')#
|
24 |
+
unique_values = joblib.load('unique_values.joblib')#
|
25 |
|
26 |
unique_class = unique_values["workclass"]
|
27 |
unique_education = unique_values["education"]
|