CCockrum commited on
Commit
359ae35
·
verified ·
1 Parent(s): def3a29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -132,12 +132,12 @@ def get_response(system_message, chat_history, user_text, max_new_tokens=256):
132
  return response, follow_up, chat_history, None
133
 
134
  # --- Sidebar: Saved Conversations ---
135
- st.sidebar.header("Saved Conversations")
136
- if st.sidebar.button("Save Current Conversation"):
137
- conv_id = f"Conv {len(st.session_state.saved_conversations) + 1}"
138
  # Save a copy of the current conversation history
139
- st.session_state.saved_conversations[conv_id] = st.session_state.chat_history.copy()
140
- st.sidebar.success(f"Conversation saved as {conv_id}.")
141
 
142
  # Display saved conversation links
143
  if st.session_state.saved_conversations:
 
132
  return response, follow_up, chat_history, None
133
 
134
  # --- Sidebar: Saved Conversations ---
135
+ #st.sidebar.header("Saved Conversations")
136
+ #if st.sidebar.button("Save Current Conversation"):
137
+ #conv_id = f"Conv {len(st.session_state.saved_conversations) + 1}"
138
  # Save a copy of the current conversation history
139
+ #st.session_state.saved_conversations[conv_id] = st.session_state.chat_history.copy()
140
+ #st.sidebar.success(f"Conversation saved as {conv_id}.")
141
 
142
  # Display saved conversation links
143
  if st.session_state.saved_conversations: