diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-03-25 13:15:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-25 13:15:29 +0000 |
commit | 9b2dcb04bcf3a8ef10bfd9b2aac71e478132ff63 (patch) | |
tree | 2f968665d902f887147d2f473612e637e1dc74b2 /modules/images.py | |
parent | 252f15e046b06cdcf07caa2ec97a15462950b92a (diff) | |
parent | 68953a4705b7f04d82f6cfb4eb2e67756ec666ca (diff) | |
download | stable-diffusion-webui-gfx803-9b2dcb04bcf3a8ef10bfd9b2aac71e478132ff63.tar.gz stable-diffusion-webui-gfx803-9b2dcb04bcf3a8ef10bfd9b2aac71e478132ff63.tar.bz2 stable-diffusion-webui-gfx803-9b2dcb04bcf3a8ef10bfd9b2aac71e478132ff63.zip |
Merge branch 'master' into master
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):
|