geekyrakshit's picture
update: isolate presidio dependencies
6779bd2
raw
history blame
900 Bytes
try:
from guardrails_genie.guardrails.entity_recognition import (
PresidioEntityRecognitionGuardrail,
RegexEntityRecognitionGuardrail,
RestrictedTermsJudge,
TransformersEntityRecognitionGuardrail,
)
except ImportError:
pass
from guardrails_genie.guardrails.injection import (
PromptInjectionClassifierGuardrail,
PromptInjectionLlamaGuardrail,
PromptInjectionSurveyGuardrail,
)
from guardrails_genie.guardrails.secrets_detection import SecretsDetectionGuardrail
from .manager import GuardrailManager
__all__ = [
"PromptInjectionLlamaGuardrail",
"PromptInjectionSurveyGuardrail",
"PromptInjectionClassifierGuardrail",
"PresidioEntityRecognitionGuardrail",
"RegexEntityRecognitionGuardrail",
"TransformersEntityRecognitionGuardrail",
"RestrictedTermsJudge",
"GuardrailManager",
"SecretsDetectionGuardrail",
]