Spaces:
Sleeping
Sleeping
Rearranged help checkbox after ask button
Browse files
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 |
-
|
|
|
|
| 71 |
|
| 72 |
if 'conversation' not in st.session_state:
|
| 73 |
st.session_state.conversation = ""
|
| 74 |
|
| 75 |
with col2:
|
| 76 |
-
|
| 77 |
-
|
| 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)
|