Skip to content

Commit

Permalink
style: format code using black
Browse files Browse the repository at this point in the history
  • Loading branch information
fboulnois committed Nov 21, 2022
1 parent cb1940f commit ce1fd9f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ def __call__(
elif isinstance(image, torch.Tensor):
batch_size = image.shape[0]
else:
raise ValueError(
f"`image` has to be of type `PIL.Image.Image` or `torch.Tensor` but is {type(image)}"
)
raise ValueError(f"`image` has to be of type `PIL.Image.Image` or `torch.Tensor` but is {type(image)}")

if isinstance(image, PIL.Image.Image):
image = preprocess(image)
Expand Down

0 comments on commit ce1fd9f

Please sign in to comment.