Spaces:
Running
on
Zero
Running
on
Zero
Input Image Bug fix
Browse files
app.py
CHANGED
@@ -744,7 +744,7 @@ def add_border(image, mask_width, mask_height, blank_color):
|
|
744 |
def on_input_image_change(image_path):
|
745 |
if image_path is None:
|
746 |
gr.Warning("Please upload an Input Image to get started.")
|
747 |
-
return None, gr.update()
|
748 |
img, img_path = convert_to_rgba_png(image_path)
|
749 |
width, height = img.size
|
750 |
return [img_path, gr.update(width=width, height=height), gr.update(value=width), gr.update(value=height)]
|
|
|
744 |
def on_input_image_change(image_path):
|
745 |
if image_path is None:
|
746 |
gr.Warning("Please upload an Input Image to get started.")
|
747 |
+
return None, gr.update(), gr.update(), gr.update()
|
748 |
img, img_path = convert_to_rgba_png(image_path)
|
749 |
width, height = img.size
|
750 |
return [img_path, gr.update(width=width, height=height), gr.update(value=width), gr.update(value=height)]
|