Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,8 +16,9 @@ llm = HuggingFaceEndpoint(
|
|
16 |
max_new_tokens=100
|
17 |
)
|
18 |
|
19 |
-
#
|
20 |
-
|
|
|
21 |
|
22 |
# Function to handle chatbot response and guardrails
|
23 |
def chatbot_response_with_guardrails(message):
|
|
|
16 |
max_new_tokens=100
|
17 |
)
|
18 |
|
19 |
+
# Use a pipeline as a high-level helper
|
20 |
+
|
21 |
+
content_filter = pipeline("text-generation", model="meta-llama/LlamaGuard-7b")
|
22 |
|
23 |
# Function to handle chatbot response and guardrails
|
24 |
def chatbot_response_with_guardrails(message):
|