Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -309,16 +309,7 @@ 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 |
-
st.markdown(
|
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:
|
|
|
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({msg['content'])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
followup = st.text_input(f"💬 Continue Thread {tid[:8]}:", key=f"followup_{tid}")
|
314 |
if st.button(f"Ask Follow-up {tid}", key=f"button_{tid}"):
|
315 |
if followup:
|