stckwok commited on
Commit
fed0153
·
verified ·
1 Parent(s): 0759f69

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -840,8 +840,7 @@ def nutrition_disorder_streamlit():
840
 
841
  # Filter input
842
  filtered_result = filter_input_with_llama_guard(user_query)
843
- # print(filtered_result)
844
- st.write(filtered_result)
845
 
846
  # Process through the agent
847
  with st.chat_message("assistant"):
@@ -852,6 +851,7 @@ def nutrition_disorder_streamlit():
852
  if 'chatbot' not in st.session_state:
853
  st.session_state.chatbot = NutritionBot()
854
 
 
855
  # Get response from the chatbot
856
  response = st.session_state.chatbot.handle_customer_query(
857
  st.session_state.user_id,
 
840
 
841
  # Filter input
842
  filtered_result = filter_input_with_llama_guard(user_query)
843
+ # st.write(filtered_result) # should be safe
 
844
 
845
  # Process through the agent
846
  with st.chat_message("assistant"):
 
851
  if 'chatbot' not in st.session_state:
852
  st.session_state.chatbot = NutritionBot()
853
 
854
+ st.write("Please wait...")
855
  # Get response from the chatbot
856
  response = st.session_state.chatbot.handle_customer_query(
857
  st.session_state.user_id,