Srisamorn commited on
Commit
9d7631d
·
1 Parent(s): 36af201

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -36,7 +36,7 @@ def main():
36
  st.title("Adult Income")
37
 
38
  with st.form("questionaire"):
39
- age = st.slider("Age", min-value=10, max_value=100)
40
  workclass = st.selectbox("Workclass", option=unique_class)
41
  education = st.selectbox("Education", option=unique_education )
42
  Marital_Status = st.selectbox("Marital_Status", option=unique_ Marital_Status)
@@ -44,8 +44,8 @@ def main():
44
  relationship = st.selectbox("Relationship", option=unique_relationship)
45
  race = st.selectbox("Race", option=unique_race)
46
  sex = st.selectbox("Sex", option=unique_sex)
47
- hours_per_week = st.slider("Hours_per_week", min-value=1, max_value=100)
48
- native_country = st.selectbox("Native_country", option=unique_native_country)
49
 
50
  # clicked==True only when the button is clicked
51
  clicked = st.form_submit_button("Predict income")
 
36
  st.title("Adult Income")
37
 
38
  with st.form("questionaire"):
39
+ age = st.slider("Age", min_value=10, max_value=100)
40
  workclass = st.selectbox("Workclass", option=unique_class)
41
  education = st.selectbox("Education", option=unique_education )
42
  Marital_Status = st.selectbox("Marital_Status", option=unique_ Marital_Status)
 
44
  relationship = st.selectbox("Relationship", option=unique_relationship)
45
  race = st.selectbox("Race", option=unique_race)
46
  sex = st.selectbox("Sex", option=unique_sex)
47
+ hours_per_week = st.slider("Hours_per_week", min_value=1, max_value=100)
48
+ native_country = st.selectbox("Native_country", option=unique_country)
49
 
50
  # clicked==True only when the button is clicked
51
  clicked = st.form_submit_button("Predict income")