nornorr commited on
Commit
c03049c
·
1 Parent(s): d9bfc34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -20,8 +20,8 @@ EDU_DICT = {'Preschool': 1,
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"]
@@ -45,7 +45,7 @@ def main():
45
  race = st.selectbox("Race",options=unique_race)
46
  sex = st.selectbox("Sex",options=unique_sex)
47
  hours_per_week = st.slider("Hours per week", min_value=1, max_value=100)
48
- native_country = st.selectbox("Native country",options=unique_native_country)
49
 
50
  # clicked==True only when the button is clicked
51
  # เป็นจริงก็ต่อเมื่อ user กดปุ่มเท่านั้น
 
20
  'Doctorate': 16
21
  }
22
 
23
+ model = joblib.load('model (1).joblib')
24
+ unique_values = joblib.load('unique_values (1).joblib')
25
 
26
  unique_class = unique_values["workclass"]
27
  unique_education = unique_values["education"]
 
45
  race = st.selectbox("Race",options=unique_race)
46
  sex = st.selectbox("Sex",options=unique_sex)
47
  hours_per_week = st.slider("Hours per week", min_value=1, max_value=100)
48
+ native_country = st.selectbox("Native country",options=unique_country)
49
 
50
  # clicked==True only when the button is clicked
51
  # เป็นจริงก็ต่อเมื่อ user กดปุ่มเท่านั้น