andreska commited on
Commit
8ed1db5
·
verified ·
1 Parent(s): 6933b7b

Try fix empty box, and print debug info

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -42,11 +42,12 @@ st.markdown(
42
  unsafe_allow_html=True
43
  )
44
 
 
45
  # Define the placeholder globally (outside columns)
46
  if st.session_state and st.session_state.user_input:
47
- placeholder = st.session_state.user_input
 
48
  else:
49
- placeholder = st.empty()
50
  placeholder.markdown(f'<div class="scrollable-div"><p>Welcome! I am your Adrega AI assistant</p></div>', unsafe_allow_html=True)
51
 
52
  def handle_submit():
 
42
  unsafe_allow_html=True
43
  )
44
 
45
+ placeholder = st.empty()
46
  # Define the placeholder globally (outside columns)
47
  if st.session_state and st.session_state.user_input:
48
+ placeholder.markdown(f"session: {user_input}")
49
+ st.write("session: " + st.session_state.user_input)
50
  else:
 
51
  placeholder.markdown(f'<div class="scrollable-div"><p>Welcome! I am your Adrega AI assistant</p></div>', unsafe_allow_html=True)
52
 
53
  def handle_submit():