diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-01 08:08:39 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-01 08:08:39 +0000 |
commit | 76f256fe8f844641f4e9b41f35c7dd2cba5090d6 (patch) | |
tree | 1bce0c5d3b1d866be070f9abb18f882628ba1d00 /modules | |
parent | 11d432d92d63660c516540dcb48faac87669b4f0 (diff) | |
download | stable-diffusion-webui-gfx803-76f256fe8f844641f4e9b41f35c7dd2cba5090d6.tar.gz stable-diffusion-webui-gfx803-76f256fe8f844641f4e9b41f35c7dd2cba5090d6.tar.bz2 stable-diffusion-webui-gfx803-76f256fe8f844641f4e9b41f35c7dd2cba5090d6.zip |
Bump gradio version #YOLO
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ui_tempdir.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/ui_tempdir.py b/modules/ui_tempdir.py index 07210d14..8d519310 100644 --- a/modules/ui_tempdir.py +++ b/modules/ui_tempdir.py @@ -15,7 +15,8 @@ Savedfile = namedtuple("Savedfile", ["name"]) def save_pil_to_file(pil_image, dir=None):
already_saved_as = getattr(pil_image, 'already_saved_as', None)
if already_saved_as and os.path.isfile(already_saved_as):
- shared.demo.temp_dirs = shared.demo.temp_dirs | {os.path.abspath(os.path.dirname(already_saved_as))}
+ shared.demo.temp_file_sets[0] = shared.demo.temp_file_sets[0] | {os.path.abspath(already_saved_as)}
+
file_obj = Savedfile(already_saved_as)
return file_obj
|