error handling

This commit is contained in:
Vladimir Mandic
2024-02-13 09:17:01 -05:00
parent f5c1cb1bae
commit 1bcaa77dc5
7 changed files with 12 additions and 6 deletions
+1
View File
@@ -36,6 +36,7 @@ class Script(scripts.Script):
return init_images
def display_units(self, num_units):
num_units = num_units or 1
return (num_units * [gr.update(visible=True)]) + ((MAX_ADAPTERS - num_units) * [gr.update(visible=False)])
def ui(self, _is_img2img):