Upload app.py with huggingface_hub
Browse files
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 |
-
|
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:
|