|
|
|
@ -640,6 +640,8 @@ Steps: {json_info["steps"]}, Sampler: {sampler}, CFG scale: {json_info["scale"]}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def image_data(data):
|
|
|
|
def image_data(data):
|
|
|
|
|
|
|
|
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
image = Image.open(io.BytesIO(data))
|
|
|
|
image = Image.open(io.BytesIO(data))
|
|
|
|
textinfo, _ = read_info_from_image(image)
|
|
|
|
textinfo, _ = read_info_from_image(image)
|
|
|
|
@ -655,7 +657,7 @@ def image_data(data):
|
|
|
|
except Exception:
|
|
|
|
except Exception:
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
return '', None
|
|
|
|
return gr.update(), None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def flatten(img, bgcolor):
|
|
|
|
def flatten(img, bgcolor):
|
|
|
|
|