mirror of
https://github.com/hoshikawa2/nemo_guardrails_configuration.git
synced 2026-07-09 17:04:20 +00:00
17 lines
201 B
Python
17 lines
201 B
Python
def build_tox_prompt(text):
|
|
return f"""
|
|
Classifique o texto abaixo:
|
|
|
|
Texto:
|
|
{text}
|
|
|
|
Classifique como:
|
|
- TOXICO
|
|
- NORMAL
|
|
|
|
Responda JSON:
|
|
{{
|
|
"allowed": true/false,
|
|
"label": "TOXICO/NORMAL"
|
|
}}
|
|
""" |