fix: unneeded argument

This commit is contained in:
Bryce Drennan 2022-09-23 15:15:41 -07:00 committed by GitHub
parent eb54b9ca7f
commit d090f9d072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -310,7 +310,7 @@ def imagine(
caption = generate_caption(img) caption = generate_caption(img)
logger.info(f" Generated caption: {caption}") logger.info(f" Generated caption: {caption}")
if IMAGINAIRY_SAFETY_MODE != SafetyMode.DISABLED: 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: if is_nsfw_img and IMAGINAIRY_SAFETY_MODE == SafetyMode.FILTER:
logger.info(" ⚠️ Filtering NSFW image") logger.info(" ⚠️ Filtering NSFW image")
img = img.filter(ImageFilter.GaussianBlur(radius=40)) img = img.filter(ImageFilter.GaussianBlur(radius=40))