Allow user input for gradio theme selection

This commit is contained in:
AUTOMATIC
2023-04-29 12:52:09 +03:00
parent e018c8a391
commit b06205eaf6
2 changed files with 11 additions and 1 deletions

View File

@@ -62,3 +62,13 @@ class DropdownMulti(FormComponent, gr.Dropdown):
def get_block_name(self):
return "dropdown"
class DropdownEditable(FormComponent, gr.Dropdown):
"""Same as gr.Dropdown but allows editing value"""
def __init__(self, **kwargs):
super().__init__(allow_custom_value=True, **kwargs)
def get_block_name(self):
return "dropdown"