Skip to content

Commit f381402

Browse files
make fix-copies
1 parent 3d8b3d7 commit f381402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ def _encode_prompt(
560560
uncond_tokens: List[str]
561561
if negative_prompt is None:
562562
uncond_tokens = [""] * batch_size
563-
elif type(prompt) is not type(negative_prompt):
563+
elif prompt is not None and type(prompt) is not type(negative_prompt):
564564
raise TypeError(
565565
f"`negative_prompt` should be the same type to `prompt`, but got {type(negative_prompt)} !="
566566
f" {type(prompt)}."

0 commit comments

Comments
 (0)