Update app.py
Browse files
app.py
CHANGED
@@ -32,8 +32,8 @@ NUM_IMAGES_PER_PROMPT = 1
|
|
32 |
# Define the regular expression
|
33 |
child_related_regex = re.compile(
|
34 |
r'(child|children|kid|kids|baby|shota|loli|lolicon|babies|toddler|infant|juvenile|minor|underage|preteen|adolescent|youngster|youth|kindergarten|preschool|'
|
35 |
-
r'([1-9]|1[0-7])\
|
36 |
-
r'little|small|tiny|short|new\
|
37 |
re.IGNORECASE
|
38 |
)
|
39 |
|
|
|
32 |
# Define the regular expression
|
33 |
child_related_regex = re.compile(
|
34 |
r'(child|children|kid|kids|baby|shota|loli|lolicon|babies|toddler|infant|juvenile|minor|underage|preteen|adolescent|youngster|youth|kindergarten|preschool|'
|
35 |
+
r'([1-9]|1[0-7])[\s_\-|\.\,]*year(s)?[\s_\-|\.\,]*old|' # Matches 1 to 17 years old with various separators
|
36 |
+
r'little|small|tiny|short|new[\s_\-|\.\,]*born[\s_\-|\.\,]*(boy|girl|bro|brother|sis|sister|shota|loli|lolita))',
|
37 |
re.IGNORECASE
|
38 |
)
|
39 |
|