francescoKrnl commited on
Commit
804bc5f
1 Parent(s): 78b2dd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def run(image, item_name):
36
  print("sketch updated")
37
  print(image)
38
  empty_image = Image.new("L", (512, 512), 255)
39
- diff = ImageChops.difference(image, empty_image)
40
  # if image["composite"] is None:
41
  if not diff.getbbox():
42
  ones = empty_image
 
36
  print("sketch updated")
37
  print(image)
38
  empty_image = Image.new("L", (512, 512), 255)
39
+ diff = ImageChops.difference(image["composite"], empty_image)
40
  # if image["composite"] is None:
41
  if not diff.getbbox():
42
  ones = empty_image