Spaces:
Sleeping
Sleeping
Move input boxes over output
Browse files
app.py
CHANGED
|
@@ -34,6 +34,16 @@ st.markdown(
|
|
| 34 |
unsafe_allow_html=True
|
| 35 |
)
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
def handle_submit():
|
| 38 |
user_input = st.session_state.user_input
|
| 39 |
|
|
@@ -70,17 +80,7 @@ def handle_submit():
|
|
| 70 |
|
| 71 |
#st.title("Adrega AI Help")
|
| 72 |
|
| 73 |
-
st.text_input('Ask me a question', key='user_input', on_change=handle_submit)
|
| 74 |
-
col1, col2 = st.columns(2)
|
| 75 |
-
|
| 76 |
-
with col1:
|
| 77 |
-
if st.button("Ask"):
|
| 78 |
-
handle_submit()
|
| 79 |
-
|
| 80 |
if 'conversation' not in st.session_state:
|
| 81 |
st.session_state.conversation = ""
|
| 82 |
-
|
| 83 |
-
with col2:
|
| 84 |
-
st.session_state.include_context = st.checkbox('Search in Help')
|
| 85 |
|
| 86 |
#st.markdown(f'<div class="scrollable-div">{st.session_state.conversation}</div>', unsafe_allow_html=True)
|
|
|
|
| 34 |
unsafe_allow_html=True
|
| 35 |
)
|
| 36 |
|
| 37 |
+
st.text_input('Ask me a question', key='user_input', on_change=handle_submit)
|
| 38 |
+
col1, col2 = st.columns(2)
|
| 39 |
+
|
| 40 |
+
with col1:
|
| 41 |
+
if st.button("Ask"):
|
| 42 |
+
handle_submit()
|
| 43 |
+
|
| 44 |
+
with col2:
|
| 45 |
+
st.session_state.include_context = st.checkbox('Search in Help')
|
| 46 |
+
|
| 47 |
def handle_submit():
|
| 48 |
user_input = st.session_state.user_input
|
| 49 |
|
|
|
|
| 80 |
|
| 81 |
#st.title("Adrega AI Help")
|
| 82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
if 'conversation' not in st.session_state:
|
| 84 |
st.session_state.conversation = ""
|
|
|
|
|
|
|
|
|
|
| 85 |
|
| 86 |
#st.markdown(f'<div class="scrollable-div">{st.session_state.conversation}</div>', unsafe_allow_html=True)
|