Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -713,7 +713,7 @@ def nutrition_disorder_streamlit():
|
|
| 713 |
# Filter input using Llama Guard
|
| 714 |
filtered_result = filter_input_with_llama_guard(user_query) # Blank #2: Fill in with the function name for filtering input (e.g., filter_input_with_llama_guard)
|
| 715 |
filtered_result = filtered_result.replace("\n", " ") # Normalize the result
|
| 716 |
-
|
| 717 |
# Check if input is safe based on allowed statuses
|
| 718 |
if filtered_result in ["safe", "S6", "S7"]: # Blanks #3, #4, #5: Fill in with allowed safe statuses (e.g., "safe", "unsafe S7", "unsafe S6")
|
| 719 |
try:
|
|
|
|
| 713 |
# Filter input using Llama Guard
|
| 714 |
filtered_result = filter_input_with_llama_guard(user_query) # Blank #2: Fill in with the function name for filtering input (e.g., filter_input_with_llama_guard)
|
| 715 |
filtered_result = filtered_result.replace("\n", " ") # Normalize the result
|
| 716 |
+
print(filtered_result)
|
| 717 |
# Check if input is safe based on allowed statuses
|
| 718 |
if filtered_result in ["safe", "S6", "S7"]: # Blanks #3, #4, #5: Fill in with allowed safe statuses (e.g., "safe", "unsafe S7", "unsafe S6")
|
| 719 |
try:
|