Spaces:
Runtime error
Runtime error
hotfix
Browse files
model.py
CHANGED
@@ -72,7 +72,7 @@ class SegmentationTool:
|
|
72 |
if image_path:
|
73 |
image = Image.open(image_path)
|
74 |
else:
|
75 |
-
if
|
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)
|