Add anti child porn patch #3
2
api.py
2
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:
|
||||
|
|
Loading…
Reference in New Issue