Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,12 +24,6 @@ llm = HuggingFaceEndpoint(
|
|
| 24 |
def chatbot_response(user_message: str) -> str:
|
| 25 |
"""
|
| 26 |
Generates a chatbot response while ensuring the content is safe for children under 16.
|
| 27 |
-
|
| 28 |
-
Args:
|
| 29 |
-
user_message (str): The input message from the user.
|
| 30 |
-
|
| 31 |
-
Returns:
|
| 32 |
-
str: A safe chatbot response or a safety warning message.
|
| 33 |
"""
|
| 34 |
try:
|
| 35 |
# Step 1: Validate the user input
|
|
|
|
| 24 |
def chatbot_response(user_message: str) -> str:
|
| 25 |
"""
|
| 26 |
Generates a chatbot response while ensuring the content is safe for children under 16.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
"""
|
| 28 |
try:
|
| 29 |
# Step 1: Validate the user input
|