Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -844,7 +844,8 @@ def nutrition_disorder_streamlit():
|
|
844 |
# Process through the agent
|
845 |
with st.chat_message("assistant"):
|
846 |
# if filtered_result in ["safe", "unsafe S7", "unsafe S6"]:
|
847 |
-
if filtered_result in ["SAFE", "S6", "S7"]:
|
|
|
848 |
try:
|
849 |
# Initialize chatbot if not already done
|
850 |
if 'chatbot' not in st.session_state:
|
|
|
844 |
# Process through the agent
|
845 |
with st.chat_message("assistant"):
|
846 |
# if filtered_result in ["safe", "unsafe S7", "unsafe S6"]:
|
847 |
+
# if filtered_result in ["SAFE", "S6", "S7"]:
|
848 |
+
if not filtered_result: #debug
|
849 |
try:
|
850 |
# Initialize chatbot if not already done
|
851 |
if 'chatbot' not in st.session_state:
|