Skip to content

Commit

Permalink
bump gradio to 3.23
Browse files Browse the repository at this point in the history
fix broken image dragging
  • Loading branch information
AUTOMATIC1111 committed Mar 25, 2023
1 parent ff21682 commit 4697def
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
7 changes: 6 additions & 1 deletion modules/generation_parameters_copypaste.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,14 @@ def paste_settings(params):

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=[],
)


4 changes: 3 additions & 1 deletion modules/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,8 @@ def read_info_from_image(image):


def image_data(data):
import gradio as gr

try:
image = Image.open(io.BytesIO(data))
textinfo, _ = read_info_from_image(image)
Expand All @@ -660,7 +662,7 @@ def image_data(data):
except Exception:
pass

return '', None
return gr.update(), None


def flatten(img, bgcolor):
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ basicsr
fonts
font-roboto
gfpgan
gradio==3.22.1
gradio==3.23
invisible-watermark
numpy
omegaconf
Expand Down
2 changes: 1 addition & 1 deletion requirements_versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ div.compact{
}

.gradio-dropdown ul.options{
max-height: 35em;
z-index: 3000;
}

Expand Down

0 comments on commit 4697def

Please sign in to comment.