Ani14 commited on
Commit
e92bec9
·
verified ·
1 Parent(s): 881216e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -309,16 +309,16 @@ for tid, chats in st.session_state.chat_threads.items():
309
  avatar = user_avatar if msg['role'] == 'user' else assistant_avatar
310
  bubble_color = "#DCF8C6" if msg['role'] == 'user' else "#F0F0F0"
311
  align = "flex-end" if msg['role'] == 'user' else "flex-start"
312
-
313
  st.markdown(f"""
314
  <div style="display: flex; justify-content: {align}; margin-bottom: 10px;">
315
  <img src="{avatar}" width="30" style="margin-right: 10px; border-radius: 50%;">
316
  <div style="background-color: {bubble_color}; padding: 10px 15px; border-radius: 10px; max-width: 70%;">
317
- {msg['content']}
318
  </div>
319
  </div>
320
  """, unsafe_allow_html=True)
321
 
 
322
  followup = st.text_input(f"💬 Continue Thread {tid[:8]}:", key=f"followup_{tid}")
323
  if st.button(f"Ask Follow-up {tid}", key=f"button_{tid}"):
324
  if followup:
 
309
  avatar = user_avatar if msg['role'] == 'user' else assistant_avatar
310
  bubble_color = "#DCF8C6" if msg['role'] == 'user' else "#F0F0F0"
311
  align = "flex-end" if msg['role'] == 'user' else "flex-start"
 
312
  st.markdown(f"""
313
  <div style="display: flex; justify-content: {align}; margin-bottom: 10px;">
314
  <img src="{avatar}" width="30" style="margin-right: 10px; border-radius: 50%;">
315
  <div style="background-color: {bubble_color}; padding: 10px 15px; border-radius: 10px; max-width: 70%;">
316
+ <p style="margin: 0; color: black;">{msg['content']}</p>
317
  </div>
318
  </div>
319
  """, unsafe_allow_html=True)
320
 
321
+
322
  followup = st.text_input(f"💬 Continue Thread {tid[:8]}:", key=f"followup_{tid}")
323
  if st.button(f"Ask Follow-up {tid}", key=f"button_{tid}"):
324
  if followup: