From a40b8228ba5a074068c9a042dd91b9097b70f15e Mon Sep 17 00:00:00 2001 From: cofob Date: Sat, 6 Jan 2024 09:45:05 +0700 Subject: [PATCH] Lower prompt --- api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.py b/api.py index f7d36e6..d105c96 100644 --- a/api.py +++ b/api.py @@ -120,7 +120,7 @@ def anti_child_porn(prompt: str, neg_prompt: str) -> Tuple[str, str]: Returns: Tuple[str, str]: Updated positive prompt and negative prompt. """ - tags = prompt.replace(",", " ").split(" ") + tags = prompt.replace(",", " ").lower().split(" ") detected = False for tag in child_porn_tags: if tag in tags: