stckwok commited on
Commit
5da5181
·
verified ·
1 Parent(s): bd6e954

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -872,11 +872,12 @@ def nutrition_disorder_streamlit():
872
  # print(filtered_result)
873
  st.write(filtered_result)
874
 
 
875
  # Process through the agent
876
  with st.chat_message("assistant"):
877
- # if filtered_result in ["safe", "unsafe S7", "unsafe S6"]:
878
  # if filtered_result in ["SAFE", "S6", "S7"]:
879
- if not filtered_result: #debug
880
  try:
881
  # Initialize chatbot if not already done
882
  if 'chatbot' not in st.session_state:
 
872
  # print(filtered_result)
873
  st.write(filtered_result)
874
 
875
+ filtered_result="safe"
876
  # Process through the agent
877
  with st.chat_message("assistant"):
878
+ if filtered_result in ["safe", "unsafe S7", "unsafe S6"]:
879
  # if filtered_result in ["SAFE", "S6", "S7"]:
880
+ # if not filtered_result: #debug
881
  try:
882
  # Initialize chatbot if not already done
883
  if 'chatbot' not in st.session_state: