Benjy commited on
Commit
831f7ae
·
verified ·
1 Parent(s): 873fd0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,9 +35,9 @@ def display_conversation(user_input, response):
35
  st.session_state.history.append(f"IT Support: {response}")
36
  for i, message in enumerate(st.session_state.history[-10:]): # Display last 10 messages
37
  if i % 2 == 0:
38
- st.markdown(f"<div style='background-color:#e1f5fe;padding:10px;border-radius:10px;'>{message}</div>", unsafe_allow_html=True)
39
  else:
40
- st.markdown(f"<div style='background-color:#c8e6c9;padding:10px;border-radius:10px;'>{message}</div>", unsafe_allow_html=True)
41
  st.session_state.enter_pressed = False # Reset the enter trigger
42
 
43
  def get_message(user_input):
 
35
  st.session_state.history.append(f"IT Support: {response}")
36
  for i, message in enumerate(st.session_state.history[-10:]): # Display last 10 messages
37
  if i % 2 == 0:
38
+ st.markdown(f"<div style='background-color:#e1f5fe;padding:10px;border-radius:10px;'>{message}&nbsp;</div>", unsafe_allow_html=True)
39
  else:
40
+ st.markdown(f"<div style='background-color:#c8e6c9;padding:10px;border-radius:10px;'>{message}&nbsp;</div>", unsafe_allow_html=True)
41
  st.session_state.enter_pressed = False # Reset the enter trigger
42
 
43
  def get_message(user_input):