diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-03-25 09:36:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-25 09:36:35 +0000 |
commit | db7caf9b9cb353fdb92f179a02ba71c923e2dcec (patch) | |
tree | 93bd1e85103efdb4a2eb8cacf5c022901fd51c43 /modules/images.py | |
parent | e5dd5d73357715110c18c1ac31711f3a81b84a0c (diff) | |
parent | c1294d849a50b9b2995aa257adbb918837c4b384 (diff) | |
download | stable-diffusion-webui-gfx803-db7caf9b9cb353fdb92f179a02ba71c923e2dcec.tar.gz stable-diffusion-webui-gfx803-db7caf9b9cb353fdb92f179a02ba71c923e2dcec.tar.bz2 stable-diffusion-webui-gfx803-db7caf9b9cb353fdb92f179a02ba71c923e2dcec.zip |
Merge branch 'master' into patch-1
Diffstat (limited to 'modules/images.py')
-rw-r--r-- | modules/images.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/images.py b/modules/images.py index 2da988ee..7030aaaa 100644 --- a/modules/images.py +++ b/modules/images.py @@ -645,6 +645,8 @@ Steps: {json_info["steps"]}, Sampler: {sampler}, CFG scale: {json_info["scale"]} def image_data(data):
+ import gradio as gr
+
try:
image = Image.open(io.BytesIO(data))
textinfo, _ = read_info_from_image(image)
@@ -660,7 +662,7 @@ def image_data(data): except Exception:
pass
- return '', None
+ return gr.update(), None
def flatten(img, bgcolor):
|