Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import joblib
|
2 |
import pandas as pd
|
|
|
3 |
|
4 |
|
5 |
EDU_DICT = {'Preschool': 1,
|
@@ -20,8 +21,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 at
|
4 |
|
5 |
|
6 |
EDU_DICT = {'Preschool': 1,
|
|
|
21 |
'Doctorate': 16
|
22 |
}
|
23 |
|
24 |
+
model = joblib.load('model.joblib')
|
25 |
+
unique_values = joblib.load('unique_values.joblib')
|
26 |
|
27 |
unique_class = unique_values["workclass"]
|
28 |
unique_education = unique_values["education"]
|