Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -435,7 +435,7 @@ def page2():
|
|
435 |
|
436 |
st.session_state['chat_history_page2'].append(("Bot", response, "new"))
|
437 |
|
438 |
-
save_conversation(st.session_state['chat_history_page2'], st.session_state['session_id'], 2)
|
439 |
|
440 |
# Display new messages at the bottom
|
441 |
new_messages = st.session_state['chat_history_page2'][-2:]
|
@@ -552,7 +552,7 @@ def page3():
|
|
552 |
background_color = "#ffeecf" if chat[2] == "new" else "#ffeecf" if chat[0] == "User" else "#ffeecf"
|
553 |
new_messages_placeholder.markdown(f"<div style='background-color: {background_color}; padding: 10px; border-radius: 10px; margin: 10px;'>{chat[0]}: {chat[1]}</div>", unsafe_allow_html=True)
|
554 |
|
555 |
-
save_conversation(st.session_state['chat_history_page3'], st.session_state['session_id'], 3)
|
556 |
|
557 |
# Clear the input field after the query is made
|
558 |
query = ""
|
|
|
435 |
|
436 |
st.session_state['chat_history_page2'].append(("Bot", response, "new"))
|
437 |
|
438 |
+
#save_conversation(st.session_state['chat_history_page2'], st.session_state['session_id'], 2)
|
439 |
|
440 |
# Display new messages at the bottom
|
441 |
new_messages = st.session_state['chat_history_page2'][-2:]
|
|
|
552 |
background_color = "#ffeecf" if chat[2] == "new" else "#ffeecf" if chat[0] == "User" else "#ffeecf"
|
553 |
new_messages_placeholder.markdown(f"<div style='background-color: {background_color}; padding: 10px; border-radius: 10px; margin: 10px;'>{chat[0]}: {chat[1]}</div>", unsafe_allow_html=True)
|
554 |
|
555 |
+
#save_conversation(st.session_state['chat_history_page3'], st.session_state['session_id'], 3)
|
556 |
|
557 |
# Clear the input field after the query is made
|
558 |
query = ""
|