From c5fe8ebadbf206e2f4199ccde4606e331a22148a Mon Sep 17 00:00:00 2001 From: hysts Date: Thu, 14 Sep 2023 02:07:16 +0900 Subject: [PATCH] Fix docstring of dropdown (#5516) * Fix * add changeset * add changeset --------- Co-authored-by: gradio-pr-bot --- .changeset/chubby-hats-type.md | 5 +++++ gradio/components/dropdown.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/chubby-hats-type.md diff --git a/.changeset/chubby-hats-type.md b/.changeset/chubby-hats-type.md new file mode 100644 index 0000000000..a54c469be2 --- /dev/null +++ b/.changeset/chubby-hats-type.md @@ -0,0 +1,5 @@ +--- +"gradio": patch +--- + +feat:Fix docstring of dropdown diff --git a/gradio/components/dropdown.py b/gradio/components/dropdown.py index 1e4bfcbb86..d6bab4a39c 100644 --- a/gradio/components/dropdown.py +++ b/gradio/components/dropdown.py @@ -68,7 +68,7 @@ class Dropdown( value: default value(s) selected in dropdown. If None, no value is selected by default. If callable, the function will be called whenever the app loads to set the initial value of the component. type: Type of value to be returned by component. "value" returns the string of the choice selected, "index" returns the index of the choice selected. multiselect: if True, multiple choices can be selected. - allow_custom_value: If True, allows user to enter a custom value that is not in the list of choices. Only applies if `multiselect` is False. + allow_custom_value: If True, allows user to enter a custom value that is not in the list of choices. max_choices: maximum number of choices that can be selected. If None, no limit is enforced. filterable: If True, user will be able to type into the dropdown and filter the choices by typing. Can only be set to False if `allow_custom_value` is False. label: component name in interface.