andreska commited on
Commit
f180a8c
·
verified ·
1 Parent(s): 88aec48

Try to fix Type error

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -69,7 +69,8 @@ def handle_submit():
69
  else:
70
  st.session_state.conversation(f"<p><strong>Adrega AI:</strong>: Please enter a question.")
71
 
72
- #st.title("Adrega AI Help")
 
73
 
74
  st.text_input('Ask me a question', key='user_input', on_change=handle_submit)
75
  col1, col2 = st.columns(2)
@@ -84,8 +85,5 @@ if 'conversation' not in st.session_state:
84
  with col2:
85
  st.session_state.include_context = st.checkbox('Search in Help')
86
 
87
- if 'placeholder' not in st.session_state:
88
- st.session_state.placeholder = st.empty()
89
-
90
  st.session_state.placeholder
91
  #st.markdown(f'<div class="scrollable-div">{st.session_state.conversation}</div>', unsafe_allow_html=True)
 
69
  else:
70
  st.session_state.conversation(f"<p><strong>Adrega AI:</strong>: Please enter a question.")
71
 
72
+ if 'placeholder' not in st.session_state:
73
+ st.session_state.placeholder = st.empty()
74
 
75
  st.text_input('Ask me a question', key='user_input', on_change=handle_submit)
76
  col1, col2 = st.columns(2)
 
85
  with col2:
86
  st.session_state.include_context = st.checkbox('Search in Help')
87
 
 
 
 
88
  st.session_state.placeholder
89
  #st.markdown(f'<div class="scrollable-div">{st.session_state.conversation}</div>', unsafe_allow_html=True)