Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1781,7 +1781,9 @@ if st.session_state["used_messages"] < st.session_state["message_limit"]:
|
|
| 1781 |
with st.chat_message("assistant"):
|
| 1782 |
st.markdown("Please provide the content to save as a TrustBuilder.")
|
| 1783 |
st.session_state["handled"] = True
|
|
|
|
| 1784 |
|
|
|
|
| 1785 |
# Handle other memory queries if any
|
| 1786 |
if not st.session_state["handled"]:
|
| 1787 |
memory_response = handle_memory_queries(prompt)
|
|
@@ -1831,5 +1833,4 @@ if st.session_state["used_messages"] < st.session_state["message_limit"]:
|
|
| 1831 |
|
| 1832 |
st.session_state.chat_history.append({"role": "assistant", "content": cleaned_text})
|
| 1833 |
copy_to_clipboard(cleaned_text)
|
| 1834 |
-
#
|
| 1835 |
-
st.session_state["handled"] = True # Mark as handled
|
|
|
|
| 1781 |
with st.chat_message("assistant"):
|
| 1782 |
st.markdown("Please provide the content to save as a TrustBuilder.")
|
| 1783 |
st.session_state["handled"] = True
|
| 1784 |
+
return
|
| 1785 |
|
| 1786 |
+
|
| 1787 |
# Handle other memory queries if any
|
| 1788 |
if not st.session_state["handled"]:
|
| 1789 |
memory_response = handle_memory_queries(prompt)
|
|
|
|
| 1833 |
|
| 1834 |
st.session_state.chat_history.append({"role": "assistant", "content": cleaned_text})
|
| 1835 |
copy_to_clipboard(cleaned_text)
|
| 1836 |
+
st.session_state["handled"] = True # Mark as handled
|
|
|