Benjy commited on
Commit
25634f6
·
verified ·
1 Parent(s): cc5db75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,9 +38,9 @@ def handle_input():
38
  def display_conversation():
39
  for i, message in enumerate(st.session_state.history[-10:]): # Display last 10 messages
40
  if i % 2 == 0:
41
- st.markdown(f"<div style='background-color:#e1f5fe;padding:10px;border-radius:10px;'>{message}</div>&nbsp;", unsafe_allow_html=True)
42
  else:
43
- st.markdown(f"<div style='background-color:#ffd7b5;padding:10px;border-radius:10px;'>{message}</div>&nbsp;", unsafe_allow_html=True)
44
 
45
  def get_message(user_input):
46
  context = """
 
38
  def display_conversation():
39
  for i, message in enumerate(st.session_state.history[-10:]): # Display last 10 messages
40
  if i % 2 == 0:
41
+ st.markdown(f"<div style='background-color:#f5f5f5;padding:10px;border-radius:10px;'>{message}</div>&nbsp;", unsafe_allow_html=True)
42
  else:
43
+ st.markdown(f"<div style='background-color:#e1f5fe;padding:10px;border-radius:10px;'>{message}</div>&nbsp;", unsafe_allow_html=True)
44
 
45
  def get_message(user_input):
46
  context = """