Skip to content

Commit ce1fd9f

Browse files
committed
style: format code using black
1 parent cb1940f commit ce1fd9f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion_superresolution.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ def __call__(
108108
elif isinstance(image, torch.Tensor):
109109
batch_size = image.shape[0]
110110
else:
111-
raise ValueError(
112-
f"`image` has to be of type `PIL.Image.Image` or `torch.Tensor` but is {type(image)}"
113-
)
111+
raise ValueError(f"`image` has to be of type `PIL.Image.Image` or `torch.Tensor` but is {type(image)}")
114112

115113
if isinstance(image, PIL.Image.Image):
116114
image = preprocess(image)

0 commit comments

Comments
 (0)