Spaces:
Sleeping
Sleeping
Test placeholder outside handle_submit()
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ def handle_submit():
|
|
| 61 |
)
|
| 62 |
|
| 63 |
answer = ""
|
| 64 |
-
placeholder =st.empty()
|
| 65 |
placeholder.markdown('<div class="scrollable-div"></div>', unsafe_allow_html=True)
|
| 66 |
for chunk in response:
|
| 67 |
answer += chunk['choices'][0]['delta']['content']
|
|
@@ -84,5 +84,6 @@ if 'conversation' not in st.session_state:
|
|
| 84 |
|
| 85 |
with col2:
|
| 86 |
st.session_state.include_context = st.checkbox('Search in Help')
|
| 87 |
-
|
|
|
|
| 88 |
#st.markdown(f'<div class="scrollable-div">{st.session_state.conversation}</div>', unsafe_allow_html=True)
|
|
|
|
| 61 |
)
|
| 62 |
|
| 63 |
answer = ""
|
| 64 |
+
#placeholder =st.empty()
|
| 65 |
placeholder.markdown('<div class="scrollable-div"></div>', unsafe_allow_html=True)
|
| 66 |
for chunk in response:
|
| 67 |
answer += chunk['choices'][0]['delta']['content']
|
|
|
|
| 84 |
|
| 85 |
with col2:
|
| 86 |
st.session_state.include_context = st.checkbox('Search in Help')
|
| 87 |
+
|
| 88 |
+
placeholder = st.empty()
|
| 89 |
#st.markdown(f'<div class="scrollable-div">{st.session_state.conversation}</div>', unsafe_allow_html=True)
|