Arpit-Bansal commited on
Commit
009bc18
·
verified ·
1 Parent(s): 7ed2f0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -40,11 +40,13 @@ with st.sidebar:
40
  st.header("User Information")
41
  state = st.text_input("India-State", key="state_input")
42
  gender = st.selectbox("Gender", ["", "Male", "Female", "Other", "Prefer not to say"], key="gender_input")
 
43
 
44
  if st.button("Save User Info"):
45
  st.session_state.user_data = {
46
  "state": state if state else None,
47
- "gender": gender if gender else None
 
48
  }
49
  st.success("User information saved!")
50
 
 
40
  st.header("User Information")
41
  state = st.text_input("India-State", key="state_input")
42
  gender = st.selectbox("Gender", ["", "Male", "Female", "Other", "Prefer not to say"], key="gender_input")
43
+ style = st.selectbox("Style", ["Normal", "concise", "explanatory"], key="style_input")
44
 
45
  if st.button("Save User Info"):
46
  st.session_state.user_data = {
47
  "state": state if state else None,
48
+ "gender": gender if gender else None,
49
+ "style": style if style else "Normal"
50
  }
51
  st.success("User information saved!")
52