bienom commited on
Commit
59390e7
1 Parent(s): f36f22d
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -72,7 +72,7 @@ class SegmentationTool:
72
  if image_path:
73
  image = Image.open(image_path)
74
  else:
75
- if not image:
76
  raise ValueError("no image provided")
77
 
78
  # display(image)
 
72
  if image_path:
73
  image = Image.open(image_path)
74
  else:
75
+ if image is None:
76
  raise ValueError("no image provided")
77
 
78
  # display(image)