Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|