diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-03-25 04:29:51 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-03-25 04:29:51 +0000 |
commit | 9e1afa9eb421ec3c7fa4d972b8f4728f3fb9b210 (patch) | |
tree | ea9bd7eed45e6133f0e93d4c4e5896ee6f468f49 /modules/images.py | |
parent | d3dcb05904de0a21cee27466da399263d21dbf43 (diff) | |
download | stable-diffusion-webui-gfx803-9e1afa9eb421ec3c7fa4d972b8f4728f3fb9b210.tar.gz stable-diffusion-webui-gfx803-9e1afa9eb421ec3c7fa4d972b8f4728f3fb9b210.tar.bz2 stable-diffusion-webui-gfx803-9e1afa9eb421ec3c7fa4d972b8f4728f3fb9b210.zip |
bump gradio to 3.23
fix broken image dragging
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 7df2b08c..26be5bae 100644 --- a/modules/images.py +++ b/modules/images.py @@ -640,6 +640,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)
@@ -655,7 +657,7 @@ def image_data(data): except Exception:
pass
- return '', None
+ return gr.update(), None
def flatten(img, bgcolor):
|