Add anti child porn patch #3

Merged
Hitmare merged 4 commits from cofob/Eris_api_tensor_patch:anti-child-porn into main 2024-01-06 09:42:54 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit a40b8228ba - Show all commits

2
api.py
View File

@ -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: