andreska commited on
Commit
ab8d348
·
verified ·
1 Parent(s): 1e0de9b

Test placeholder outside handle_submit()

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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)