Puree commited on
Commit
5bb5002
1 Parent(s): 300e08b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,7 +46,7 @@ def main():
46
  race = st.selectbox("race",options = unique_race)# user's input
47
  sex = st.selectbox("sex",options = unique_sex)# user's input
48
  hours_per_week = st.slider("Hours per week",min_values=1, max_values=100)# user's input
49
- native_country = st.selectbox("Native country",options = unique_native_country)# user's input
50
 
51
  # clicked==True only when the button is clicked
52
  clicked = st.form_submit_button("Predict income")
@@ -64,6 +64,6 @@ def main():
64
  # Show prediction
65
  result = '>50K' if result[0] ==1 else '<=50K'
66
  st.success("Your predict income is"+result)
67
- if __name__ = '__main__':
68
  main()
69
  # Run main()
 
46
  race = st.selectbox("race",options = unique_race)# user's input
47
  sex = st.selectbox("sex",options = unique_sex)# user's input
48
  hours_per_week = st.slider("Hours per week",min_values=1, max_values=100)# user's input
49
+ native_country = st.selectbox("Native country",options = unique_country)# user's input
50
 
51
  # clicked==True only when the button is clicked
52
  clicked = st.form_submit_button("Predict income")
 
64
  # Show prediction
65
  result = '>50K' if result[0] ==1 else '<=50K'
66
  st.success("Your predict income is"+result)
67
+ if __name__ == '__main__':
68
  main()
69
  # Run main()