Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ ENABLE_CPU_OFFLOAD = os.getenv("ENABLE_CPU_OFFLOAD", "0") == "1"
|
|
31 |
NUM_IMAGES_PER_PROMPT = 1
|
32 |
# Define the regular expression
|
33 |
child_related_regex = re.compile(
|
34 |
-
r'(child|children|kid|kids|baby|babies|toddler|infant|juvenile|minor|underage|preteen|adolescent|youngster|youth|young|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|male|man|bro|brother|sis|sister))',
|
37 |
re.IGNORECASE
|
|
|
31 |
NUM_IMAGES_PER_PROMPT = 1
|
32 |
# Define the regular expression
|
33 |
child_related_regex = re.compile(
|
34 |
+
r'(child|children|kid|kids|baby|babies|toddler|infant|juvenile|minor|underage|preteen|adolescent|youngster|youth|son|daughter|young|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|male|man|bro|brother|sis|sister))',
|
37 |
re.IGNORECASE
|