Spaces:
Sleeping
Sleeping
Update guardrail.py
Browse files- guardrail.py +7 -0
guardrail.py
CHANGED
@@ -1,3 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Set the content policy
|
2 |
safe_content_policy = {
|
3 |
"policy": """O1: Violence and Hate.
|
|
|
1 |
+
from together import Together
|
2 |
+
from helper import get_together_api_key
|
3 |
+
|
4 |
+
# Initialize Together client
|
5 |
+
client = Together(api_key=get_together_api_key())
|
6 |
+
|
7 |
+
|
8 |
# Set the content policy
|
9 |
safe_content_policy = {
|
10 |
"policy": """O1: Violence and Hate.
|