Wajahat698 commited on
Commit
4fc0f64
·
verified ·
1 Parent(s): b6740d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1746,9 +1746,10 @@ def handle_save_trustbuilder(content, specified_bucket=None):
1746
 
1747
  # Update last processed content
1748
  st.session_state["last_processed_content"] = content
 
 
 
1749
 
1750
- # Generate response
1751
- return f"TrustBuilder allocated to **{bucket}** and saved successfully!"
1752
 
1753
 
1754
 
@@ -1858,8 +1859,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
- 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"]:
 
1746
 
1747
  # Update last processed content
1748
  st.session_state["last_processed_content"] = content
1749
+ # Confirm saving to the user
1750
+ with st.chat_message("assistant"):
1751
+ st.markdown(f"TrustBuilder allocated to **{bucket}** and saved successfully!")
1752
 
 
 
1753
 
1754
 
1755
 
 
1859
  st.session_state.chat_history.append({"role": "assistant", "content": assistant_response})
1860
  with st.chat_message("assistant"):
1861
  st.markdown(assistant_response)
1862
+ st.session_state["handled"] = True
1863
+ return # Exit to prevent further processing
1864
 
1865
  # Handle save TrustBuilder command
1866
  if not st.session_state["handled"]: