mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-03 01:50:59 +08:00
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:
parent
aee3757ad8
commit
290f518716
5
.changeset/eager-wasps-move.md
Normal file
5
.changeset/eager-wasps-move.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
feat:fix: typo in UploadButton's docstring
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user