Aomsin commited on
Commit
a733ad3
·
1 Parent(s): 934ffb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -37,15 +37,15 @@ def main():
37
 
38
  with st.form("questionaire"):
39
  age = st.slider("Age",min_value=10,max_value=100)
40
- workclass = st_selectbox("Workclass",options=unique_class)
41
- education = st_selectbox("Education",options=unique_education)
42
- Marital_Status = st_selectbox("Marital status",options=unique_marital_status)
43
- occupation = st_selectbox("Ocupation",options=unique_occupation)
44
- relationship = st_selectbox("Relationship",options=unique_relationship)
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
  clicked = st.form_submit_button("Predict income")
 
37
 
38
  with st.form("questionaire"):
39
  age = st.slider("Age",min_value=10,max_value=100)
40
+ workclass = st.selectbox("Workclass",options=unique_class)
41
+ education = st.selectbox("Education",options=unique_education)
42
+ Marital_Status = st.selectbox("Marital status",options=unique_marital_status)
43
+ occupation = st.selectbox("Ocupation",options=unique_occupation)
44
+ relationship = st.selectbox("Relationship",options=unique_relationship)
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
  clicked = st.form_submit_button("Predict income")