From b4f88f061fce871f65213f161dd739440ca05205 Mon Sep 17 00:00:00 2001 From: Badaloza <83389535+Badaloza@users.noreply.github.com> Date: Sat, 22 Jun 2024 19:11:39 +0530 Subject: [PATCH] Resolve Error in Guard validation code example I've encountered an issue with the code example provided for using Guard with CompetitorCheck and ToxicLanguage. The issue is related to the syntax and the use of the use_many method in the Guard class. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3fa958a6d..56590c88c 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ pip install guardrails-ai guard = Guard().use_many( CompetitorCheck(["Apple", "Microsoft", "Google"], on_fail=OnFailAction.EXCEPTION), - ToxicLanguage(threshold=0.5, validation_method="sentence", on_fail=OnFailAction.EXCEPTION),), + ToxicLanguage(threshold=0.5, validation_method="sentence", on_fail=OnFailAction.EXCEPTION) ) guard.validate(