Spaces:
Running
Running
root commited on
Commit ·
54b7d8e
1
Parent(s): fed751d
fix some bugs
Browse files78 unmodified lines7980818283848578 unmodified linesdef copy_img_to_input(img):try:# print(img)print(type(img[0]))image_data = re.sub('^data:image/.+;base64,', '', img[0])processed_image = Image.open(BytesIO(base64.b64decode(image_data)))tab_update = gr.update(selected='img2img_tab')78 unmodified lines798081828384858678 unmodified linesdef copy_img_to_input(img):try:# print(img)print("=============")print("The img type is:{}".format(type(img[0])))image_data = re.sub('^data:image/.+;base64,', '', img[0])processed_image = Image.open(BytesIO(base64.b64decode(image_data)))tab_update = gr.update(selected='img2img_tab')
ui_functions.py+2-1