Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1747,8 +1747,7 @@ def handle_save_trustbuilder(content, specified_bucket=None):
|
|
| 1747 |
# Update last processed content
|
| 1748 |
st.session_state["last_processed_content"] = content
|
| 1749 |
# Confirm saving to the user
|
| 1750 |
-
|
| 1751 |
-
st.markdown(f"TrustBuilder allocated to **{bucket}** and saved successfully!")
|
| 1752 |
|
| 1753 |
|
| 1754 |
|
|
@@ -1878,8 +1877,7 @@ def handle_prompt(prompt):
|
|
| 1878 |
response = handle_save_trustbuilder(content_to_save, specified_bucket)
|
| 1879 |
if response:
|
| 1880 |
st.session_state.chat_history.append({"role": "assistant", "content": response})
|
| 1881 |
-
|
| 1882 |
-
st.markdown(response)
|
| 1883 |
else:
|
| 1884 |
with st.chat_message("assistant"):
|
| 1885 |
st.markdown("Please provide the content to save as a TrustBuilder.")
|
|
|
|
| 1747 |
# Update last processed content
|
| 1748 |
st.session_state["last_processed_content"] = content
|
| 1749 |
# Confirm saving to the user
|
| 1750 |
+
return f"TrustBuilder allocated to **{bucket}** and saved successfully!"
|
|
|
|
| 1751 |
|
| 1752 |
|
| 1753 |
|
|
|
|
| 1877 |
response = handle_save_trustbuilder(content_to_save, specified_bucket)
|
| 1878 |
if response:
|
| 1879 |
st.session_state.chat_history.append({"role": "assistant", "content": response})
|
| 1880 |
+
|
|
|
|
| 1881 |
else:
|
| 1882 |
with st.chat_message("assistant"):
|
| 1883 |
st.markdown("Please provide the content to save as a TrustBuilder.")
|