bump gradio to 3.23

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

View file

@ -401,9 +401,14 @@ def connect_paste(button, paste_fields, input_comp, override_settings_component,
button.click(
fn=paste_func,
_js=f"recalculate_prompts_{tabname}",
inputs=[input_comp],
outputs=[x[0] for x in paste_fields],
)
button.click(
fn=None,
_js=f"recalculate_prompts_{tabname}",
inputs=[],
outputs=[],
)

View file

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

View file

@ -4,7 +4,7 @@ basicsr
fonts
font-roboto
gfpgan
gradio==3.22.1
gradio==3.23
invisible-watermark
numpy
omegaconf

View file

@ -3,7 +3,7 @@ transformers==4.25.1
accelerate==0.12.0
basicsr==1.4.2
gfpgan==1.3.8
gradio==3.22.1
gradio==3.23
numpy==1.23.3
Pillow==9.4.0
realesrgan==0.3.0

View file

@ -55,7 +55,6 @@ div.compact{
}
.gradio-dropdown ul.options{
max-height: 35em;
z-index: 3000;
}