Lower prompt
This commit is contained in:
parent
23a9b8a8e3
commit
a40b8228ba
2
api.py
2
api.py
|
@ -120,7 +120,7 @@ def anti_child_porn(prompt: str, neg_prompt: str) -> Tuple[str, str]:
|
||||||
Returns:
|
Returns:
|
||||||
Tuple[str, str]: Updated positive prompt and negative prompt.
|
Tuple[str, str]: Updated positive prompt and negative prompt.
|
||||||
"""
|
"""
|
||||||
tags = prompt.replace(",", " ").split(" ")
|
tags = prompt.replace(",", " ").lower().split(" ")
|
||||||
detected = False
|
detected = False
|
||||||
for tag in child_porn_tags:
|
for tag in child_porn_tags:
|
||||||
if tag in tags:
|
if tag in tags:
|
||||||
|
|
Loading…
Reference in New Issue