Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,8 @@ def chatbot_response_with_guardrails(message):
|
|
52 |
return "Sorry, the content is not suitable for children under 16."
|
53 |
|
54 |
# If the response is safe, return the raw response
|
55 |
-
|
|
|
56 |
|
57 |
except Exception as e:
|
58 |
return f"Error: {e}"
|
|
|
52 |
return "Sorry, the content is not suitable for children under 16."
|
53 |
|
54 |
# If the response is safe, return the raw response
|
55 |
+
else
|
56 |
+
return raw_response
|
57 |
|
58 |
except Exception as e:
|
59 |
return f"Error: {e}"
|