Anshini commited on
Commit
522574f
·
verified ·
1 Parent(s): 469505c

Update pages/python.py

Browse files
Files changed (1) hide show
  1. pages/python.py +10 -4
pages/python.py CHANGED
@@ -105,7 +105,13 @@ if submit and user_input:
105
 
106
  # Chat history
107
  st.subheader("🗨️ Chat History")
108
- for user, bot in st.session_state[PAGE_KEY]:
109
- st.markdown(f"**You:** {user}")
110
- st.markdown(f"**Mentor:** {bot}")
111
- st.markdown("---")
 
 
 
 
 
 
 
105
 
106
  # Chat history
107
  st.subheader("🗨️ Chat History")
108
+ # for user, bot in st.session_state[PAGE_KEY]:
109
+ # st.markdown(f"**You:** {user}")
110
+ # st.markdown(f"**Mentor:** {bot}")
111
+ # st.markdown("---")
112
+ if st.session_state[PAGE_KEY]:
113
+ st.markdown('<div class="chat-container">', unsafe_allow_html=True)
114
+ for user, bot in st.session_state[PAGE_KEY]:
115
+ st.markdown(f'<div class="chat-bubble-user">👤 <strong>You:</strong> {user}</div>', unsafe_allow_html=True)
116
+ st.markdown(f'<div class="chat-bubble-bot">🧑‍🏫 <strong>Mentor:</strong> {bot}</div>', unsafe_allow_html=True)
117
+ st.markdown('</div>', unsafe_allow_html=True)