Akshayram1 commited on
Commit
1deabc5
·
verified ·
1 Parent(s): 329e507

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -104,6 +104,8 @@ def display_chat():
104
  st.write(f"**You:** {message['content']}")
105
  else:
106
  st.write(f"**Bot:** {message['content']}")
 
 
107
  st.markdown('</div>', unsafe_allow_html=True)
108
 
109
  # Input container (This will stay at the bottom)
@@ -124,7 +126,7 @@ with input_container:
124
  # Call the text_summary function to get the bot's response
125
  bot_response = text_summary(user_input, is_new_session)
126
 
127
- # Store the bot's response
128
  st.session_state['messages'].append({"role": "bot", "content": bot_response})
129
 
130
  # Clear the input text area
 
104
  st.write(f"**You:** {message['content']}")
105
  else:
106
  st.write(f"**Bot:** {message['content']}")
107
+ # Add a separator after each bot message
108
+ st.markdown("<hr style='border:1px dashed;'>", unsafe_allow_html=True)
109
  st.markdown('</div>', unsafe_allow_html=True)
110
 
111
  # Input container (This will stay at the bottom)
 
126
  # Call the text_summary function to get the bot's response
127
  bot_response = text_summary(user_input, is_new_session)
128
 
129
+ # Store the bot's response along with the separator
130
  st.session_state['messages'].append({"role": "bot", "content": bot_response})
131
 
132
  # Clear the input text area