Surn commited on
Commit
abe0181
·
1 Parent(s): 002e417

Input Image Bug fix

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)]