Skip to content

Commit

Permalink
chore: update dropdown.py (#10485)
Browse files Browse the repository at this point in the history
* chore: update dropdown.py

correspoding -> corresponding

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
eltociear and gradio-pr-bot authored Feb 3, 2025
1 parent 90f90b7 commit 6401d32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/weak-signs-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": minor
---

feat:chore: update dropdown.py
2 changes: 1 addition & 1 deletion gradio/components/dropdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def preprocess(
Parameters:
payload: the value of the selected dropdown choice(s)
Returns:
Passes the value of the selected dropdown choice as a `str | int | float` or its index as an `int` into the function, depending on `type`. Or, if `multiselect` is True, passes the values of the selected dropdown choices as a list of correspoding values/indices instead.
Passes the value of the selected dropdown choice as a `str | int | float` or its index as an `int` into the function, depending on `type`. Or, if `multiselect` is True, passes the values of the selected dropdown choices as a list of corresponding values/indices instead.
"""
if payload is None:
return None
Expand Down

0 comments on commit 6401d32

Please sign in to comment.