mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
Modify Image examples docstring (#5553)
* Fix image docstring * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
b5c6f7b086
commit
d1bf23cd2c
5
.changeset/fine-lamps-take.md
Normal file
5
.changeset/fine-lamps-take.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"gradio": minor
|
||||
---
|
||||
|
||||
feat:Modify Image examples docstring
|
@ -48,7 +48,7 @@ class Image(
|
||||
Creates an image component that can be used to upload/draw images (as an input) or display images (as an output).
|
||||
Preprocessing: passes the uploaded image as a {numpy.array}, {PIL.Image} or {str} filepath depending on `type` -- unless `tool` is `sketch` AND source is one of `upload` or `webcam`. In these cases, a {dict} with keys `image` and `mask` is passed, and the format of the corresponding values depends on `type`.
|
||||
Postprocessing: expects a {numpy.array}, {PIL.Image} or {str} or {pathlib.Path} filepath to an image and displays the image.
|
||||
Examples-format: a {str} filepath to a local file that contains the image.
|
||||
Examples-format: a {str} local filepath or URL to an image.
|
||||
Demos: image_mod, image_mod_default_image
|
||||
Guides: image-classification-in-pytorch, image-classification-in-tensorflow, image-classification-with-vision-transformers, building-a-pictionary_app, create-your-own-friends-with-a-gan
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user