Spaces:
Running
Running
Update pages/machine_learning.py
Browse files
pages/machine_learning.py
CHANGED
@@ -148,10 +148,16 @@ with col1:
|
|
148 |
st.session_state[PAGE_KEY].append((user_input, result.content))
|
149 |
|
150 |
st.subheader("π¨οΈ Chat History")
|
151 |
-
for user, bot in st.session_state[PAGE_KEY]:
|
152 |
-
|
153 |
-
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
# --- Mentor Tips Sidebar ---
|
156 |
# with col2:
|
157 |
# st.markdown("### π‘ Tips from Mentor")
|
|
|
148 |
st.session_state[PAGE_KEY].append((user_input, result.content))
|
149 |
|
150 |
st.subheader("π¨οΈ Chat History")
|
151 |
+
# for user, bot in st.session_state[PAGE_KEY]:
|
152 |
+
# st.markdown(f'<div class="chat-bubble user-bubble">{user}</div>', unsafe_allow_html=True)
|
153 |
+
# st.markdown(f'<div class="chat-bubble mentor-bubble">{bot}</div>', unsafe_allow_html=True)
|
154 |
|
155 |
+
if st.session_state[PAGE_KEY]:
|
156 |
+
st.markdown('<div class="chat-container">', unsafe_allow_html=True)
|
157 |
+
for user, bot in st.session_state[PAGE_KEY]:
|
158 |
+
st.markdown(f'<div class="chat-bubble-user">π€ <strong>You:</strong> {user}</div>', unsafe_allow_html=True)
|
159 |
+
st.markdown(f'<div class="chat-bubble-bot">π§βπ« <strong>Mentor:</strong> {bot}</div>', unsafe_allow_html=True)
|
160 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
161 |
# --- Mentor Tips Sidebar ---
|
162 |
# with col2:
|
163 |
# st.markdown("### π‘ Tips from Mentor")
|