Anne31415 commited on
Commit
a6854c5
·
verified ·
1 Parent(s): a280eb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -444,7 +444,6 @@ def page2():
444
  duration = end_time - start_time
445
  st.text(f"Response time: {duration:.2f} seconds")
446
 
447
- st.session_state['chat_history_page2'].append(("Bot", response, "new"))
448
 
449
  # Combine chat histories from all pages
450
  all_chat_histories = [
@@ -582,7 +581,6 @@ def page3():
582
  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)
583
 
584
 
585
- save_conversation(st.session_state['chat_history_page3'], st.session_state['session_id'], 3)
586
 
587
  # Clear the input field after the query is made
588
  query = ""
 
444
  duration = end_time - start_time
445
  st.text(f"Response time: {duration:.2f} seconds")
446
 
 
447
 
448
  # Combine chat histories from all pages
449
  all_chat_histories = [
 
581
  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)
582
 
583
 
 
584
 
585
  # Clear the input field after the query is made
586
  query = ""