fix: typo in UploadButton's docstring (#5547)

* fix: typo in UploadButton's docstring

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
This commit is contained in:
Chaeheum Park 2023-09-14 17:20:27 +09:00 committed by GitHub
parent aee3757ad8
commit 290f518716
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"gradio": patch
---
feat:fix: typo in UploadButton's docstring

View File

@ -21,7 +21,7 @@ set_documentation_group("component")
@document()
class UploadButton(Clickable, Uploadable, IOComponent, FileSerializable):
"""
Used to create an upload button, when cicked allows a user to upload files that satisfy the specified file type or generic files (if file_type not set).
Used to create an upload button, when clicked allows a user to upload files that satisfy the specified file type or generic files (if file_type not set).
Preprocessing: passes the uploaded file as a {file-object} or {List[file-object]} depending on `file_count` (or a {bytes}/{List{bytes}} depending on `type`)
Postprocessing: expects function to return a {str} path to a file, or {List[str]} consisting of paths to files.
Examples-format: a {str} path to a local file that populates the component.