From 290f5187160cdbd7a786494fe3c19b0e70abe167 Mon Sep 17 00:00:00 2001 From: Chaeheum Park Date: Thu, 14 Sep 2023 17:20:27 +0900 Subject: [PATCH] fix: typo in UploadButton's docstring (#5547) * fix: typo in UploadButton's docstring * add changeset --------- Co-authored-by: gradio-pr-bot Co-authored-by: Abubakar Abid --- .changeset/eager-wasps-move.md | 5 +++++ gradio/components/upload_button.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/eager-wasps-move.md diff --git a/.changeset/eager-wasps-move.md b/.changeset/eager-wasps-move.md new file mode 100644 index 0000000000..83b04caffb --- /dev/null +++ b/.changeset/eager-wasps-move.md @@ -0,0 +1,5 @@ +--- +"gradio": patch +--- + +feat:fix: typo in UploadButton's docstring diff --git a/gradio/components/upload_button.py b/gradio/components/upload_button.py index 609bfa87a0..fc0924bfff 100644 --- a/gradio/components/upload_button.py +++ b/gradio/components/upload_button.py @@ -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.