Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ llm = HuggingFaceEndpoint(
|
|
16 |
max_new_tokens=100
|
17 |
)
|
18 |
|
19 |
-
# Initialize content moderation model (
|
20 |
-
content_filter = pipeline("text-classification", model="
|
21 |
|
22 |
# Function to handle chatbot response and guardrails
|
23 |
def chatbot_response_with_guardrails(message):
|
|
|
16 |
max_new_tokens=100
|
17 |
)
|
18 |
|
19 |
+
# Initialize content moderation model (unitary/matti)
|
20 |
+
content_filter = pipeline("text-classification", model="unitary/matti")
|
21 |
|
22 |
# Function to handle chatbot response and guardrails
|
23 |
def chatbot_response_with_guardrails(message):
|