bump gradio to 3.23

fix broken image dragging
This commit is contained in:
AUTOMATIC
2023-03-25 07:29:51 +03:00
parent ff216820fd
commit 4697def235
5 changed files with 11 additions and 5 deletions

View File

@@ -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):