Commit f53527f7 authored by AUTOMATIC's avatar AUTOMATIC

make it run on gradio < 3.16.2

parent 3deea341
...@@ -1897,7 +1897,7 @@ def create_ui(): ...@@ -1897,7 +1897,7 @@ def create_ui():
if type(x) == gr.Dropdown: if type(x) == gr.Dropdown:
def check_dropdown(val): def check_dropdown(val):
if x.multiselect: if getattr(x, 'multiselect', False):
return all([value in x.choices for value in val]) return all([value in x.choices for value in val])
else: else:
return val in x.choices return val in x.choices
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment