diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-21 17:07:14 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-21 17:07:14 +0000 |
commit | f53527f7786575fe60da0223bd63ea3f0a06a754 (patch) | |
tree | 8a60a4e3b98a704a6926941c3662bb5e9c640556 | |
parent | 3deea3413575db0ff71f20f4265f3bdc08e35453 (diff) | |
download | stable-diffusion-webui-gfx803-f53527f7786575fe60da0223bd63ea3f0a06a754.tar.gz stable-diffusion-webui-gfx803-f53527f7786575fe60da0223bd63ea3f0a06a754.tar.bz2 stable-diffusion-webui-gfx803-f53527f7786575fe60da0223bd63ea3f0a06a754.zip |
make it run on gradio < 3.16.2
-rw-r--r-- | modules/ui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py index fbc3efa0..b3105901 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1897,7 +1897,7 @@ def create_ui(): if type(x) == gr.Dropdown:
def check_dropdown(val):
- if x.multiselect:
+ if getattr(x, 'multiselect', False):
return all([value in x.choices for value in val])
else:
return val in x.choices
|