mirror of
https://github.com/hoshikawa2/nemo_guardrails_configuration.git
synced 2026-07-09 17:04:20 +00:00
Funcional
This commit is contained in:
13
final_pkg/examples/app_nemo.py
Normal file
13
final_pkg/examples/app_nemo.py
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
from company_nemo_guardrails import create_rails
|
||||
|
||||
def main():
|
||||
rails = create_rails()
|
||||
response = rails.generate(
|
||||
messages=[{"role": "user", "content": "Meu CPF é 123.456.789-00"}],
|
||||
options={"log": {"activated_rails": True}}
|
||||
)
|
||||
print(response)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user