Skip to content

Commit 05168e5

Browse files
make style
1 parent 948022e commit 05168e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffusers/pipelines/stable_diffusion_safe/pipeline_stable_diffusion_safe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ def run_safety_checker(self, image, device, dtype, enable_safety_guidance):
349349
flagged_images = np.zeros((2, *image.shape[1:]))
350350
if any(has_nsfw_concept):
351351
logger.warning(
352-
"Potential NSFW content was detected in one or more images. A black image will be returned instead."
352+
"Potential NSFW content was detected in one or more images. A black image will be returned"
353+
" instead."
353354
f"{'You may look at this images in the `unsafe_images` variable of the output at your own discretion.' if enable_safety_guidance else 'Try again with a different prompt and/or seed.'}"
354355
)
355356
for idx, has_nsfw_concept in enumerate(has_nsfw_concept):

0 commit comments

Comments
 (0)