Spaces:
Running
Running
Update pages/python.py
Browse files- 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 |
-
|
110 |
-
|
111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|