Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1858,8 +1858,8 @@ def handle_prompt(prompt):
|
|
| 1858 |
st.session_state.chat_history.append({"role": "assistant", "content": assistant_response})
|
| 1859 |
with st.chat_message("assistant"):
|
| 1860 |
st.markdown(assistant_response)
|
| 1861 |
-
|
| 1862 |
-
|
| 1863 |
|
| 1864 |
# Handle save TrustBuilder command
|
| 1865 |
if not st.session_state["handled"]:
|
|
|
|
| 1858 |
st.session_state.chat_history.append({"role": "assistant", "content": assistant_response})
|
| 1859 |
with st.chat_message("assistant"):
|
| 1860 |
st.markdown(assistant_response)
|
| 1861 |
+
st.session_state["handled"] = True
|
| 1862 |
+
return # Exit to prevent further processing
|
| 1863 |
|
| 1864 |
# Handle save TrustBuilder command
|
| 1865 |
if not st.session_state["handled"]:
|