diff --git a/modules/extras.py b/modules/extras.py index cc8fed1b..a38310f0 100644 --- a/modules/extras.py +++ b/modules/extras.py @@ -98,6 +98,9 @@ def run_extras(image, image_folder, gfpgan_visibility, codeformer_visibility, co def run_pnginfo(image): + if image is None: + return '', '', '' + items = image.info if "exif" in image.info: diff --git a/modules/ui.py b/modules/ui.py index bbd4e2b8..2c5422c7 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -806,6 +806,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): ], allow_flagging="never", analytics_enabled=False, + live=True, ) def create_setting_component(key):