Akashpb13 commited on
Commit
26b1ac7
·
verified ·
1 Parent(s): 2c63f81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: