andreska commited on
Commit
30f53de
·
verified ·
1 Parent(s): 187d5dc

Rearranged help checkbox after ask button

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -67,15 +67,13 @@ st.text_input('Ask me a question', key='user_input', on_change=handle_submit)
67
  col1, col2 = st.columns(2)
68
 
69
  with col1:
70
- st.session_state.include_context = st.checkbox('Search in Help')
 
71
 
72
  if 'conversation' not in st.session_state:
73
  st.session_state.conversation = ""
74
 
75
  with col2:
76
- if st.button("Ask"):
77
- handle_submit()
78
-
79
-
80
-
81
  st.markdown(f'<div class="scrollable-div">{st.session_state.conversation}</div>', unsafe_allow_html=True)
 
67
  col1, col2 = st.columns(2)
68
 
69
  with col1:
70
+ if st.button("Ask"):
71
+ handle_submit()
72
 
73
  if 'conversation' not in st.session_state:
74
  st.session_state.conversation = ""
75
 
76
  with col2:
77
+ st.session_state.include_context = st.checkbox('Search in Help')
78
+
 
 
 
79
  st.markdown(f'<div class="scrollable-div">{st.session_state.conversation}</div>', unsafe_allow_html=True)