Skip to content

Commit

Permalink
Add parameter to docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolisz committed Aug 3, 2023
1 parent be0153c commit 99b3607
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/transformers/image_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ def load_image(image: Union[str, "PIL.Image.Image"], timeout: Optional[float] =
Args:
image (`str` or `PIL.Image.Image`):
The image to convert to the PIL Image format.
timeout (`float`, *optional*):
The timeout value in seconds for the URL request.
Returns:
`PIL.Image.Image`: A PIL Image.
Expand Down

0 comments on commit 99b3607

Please sign in to comment.