andreska commited on
Commit
3f83288
·
verified ·
1 Parent(s): 056b542

Try fix empty box #6

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