Spaces:
Runtime error
Runtime error
root
commited on
Commit
•
54b7d8e
1
Parent(s):
fed751d
fix some bugs
Browse files- ui_functions.py +2 -1
ui_functions.py
CHANGED
@@ -79,7 +79,8 @@ def copy_img_params_to_lab(params):
|
|
79 |
def copy_img_to_input(img):
|
80 |
try:
|
81 |
# print(img)
|
82 |
-
print(
|
|
|
83 |
image_data = re.sub('^data:image/.+;base64,', '', img[0])
|
84 |
processed_image = Image.open(BytesIO(base64.b64decode(image_data)))
|
85 |
tab_update = gr.update(selected='img2img_tab')
|
|
|
79 |
def copy_img_to_input(img):
|
80 |
try:
|
81 |
# print(img)
|
82 |
+
print("=============")
|
83 |
+
print("The img type is:{}".format(type(img[0])))
|
84 |
image_data = re.sub('^data:image/.+;base64,', '', img[0])
|
85 |
processed_image = Image.open(BytesIO(base64.b64decode(image_data)))
|
86 |
tab_update = gr.update(selected='img2img_tab')
|