Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -488,7 +488,7 @@ def filter_input_with_llama_guard(user_input, model="llama-guard-3-8b"):
|
|
488 |
st.write(response.choices[0].message.content.strip());
|
489 |
return response.choices[0].message.content.strip()
|
490 |
except Exception as e:
|
491 |
-
st.write("Error with Llama Guard: {e}");
|
492 |
print(f"Error with Llama Guard: {e}")
|
493 |
return None
|
494 |
|
|
|
488 |
st.write(response.choices[0].message.content.strip());
|
489 |
return response.choices[0].message.content.strip()
|
490 |
except Exception as e:
|
491 |
+
st.write(f"Error with Llama Guard: {e}");
|
492 |
print(f"Error with Llama Guard: {e}")
|
493 |
return None
|
494 |
|