mirror of
https://github.com/brycedrennan/imaginAIry
synced 2024-11-05 12:00:15 +00:00
fix: unneeded argument
This commit is contained in:
parent
eb54b9ca7f
commit
d090f9d072
@ -310,7 +310,7 @@ def imagine(
|
||||
caption = generate_caption(img)
|
||||
logger.info(f" Generated caption: {caption}")
|
||||
if IMAGINAIRY_SAFETY_MODE != SafetyMode.DISABLED:
|
||||
is_nsfw_img = is_nsfw(img, x_sample)
|
||||
is_nsfw_img = is_nsfw(img)
|
||||
if is_nsfw_img and IMAGINAIRY_SAFETY_MODE == SafetyMode.FILTER:
|
||||
logger.info(" ⚠️ Filtering NSFW image")
|
||||
img = img.filter(ImageFilter.GaussianBlur(radius=40))
|
||||
|
Loading…
Reference in New Issue
Block a user