aboutsummaryrefslogtreecommitdiffstats
path: root/modules/images.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-03-25 04:29:51 +0000
committerAUTOMATIC <16777216c@gmail.com>2023-03-25 06:00:37 +0000
commit4697def23516ee05fbbb01f8cf6d38e9f3b19dd5 (patch)
tree92d39828593df475d24174e423cf9637064dd07d /modules/images.py
parentff216820fd680b5d04ce6cea7bf21e1bbec356b4 (diff)
downloadstable-diffusion-webui-gfx803-4697def23516ee05fbbb01f8cf6d38e9f3b19dd5.tar.gz
stable-diffusion-webui-gfx803-4697def23516ee05fbbb01f8cf6d38e9f3b19dd5.tar.bz2
stable-diffusion-webui-gfx803-4697def23516ee05fbbb01f8cf6d38e9f3b19dd5.zip
bump gradio to 3.23
fix broken image dragging
Diffstat (limited to 'modules/images.py')
-rw-r--r--modules/images.py4
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):