Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -248,7 +248,7 @@ def segment_image(image):
|
|
248 |
# Convert NumPy array to PIL Image
|
249 |
image = Image.fromarray(img)
|
250 |
# Resize the image using PIL
|
251 |
-
resized_image = image.resize((new_w, new_h)
|
252 |
img = np.array(resized_image)
|
253 |
|
254 |
if (np.max(img) > 100):
|
|
|
248 |
# Convert NumPy array to PIL Image
|
249 |
image = Image.fromarray(img)
|
250 |
# Resize the image using PIL
|
251 |
+
resized_image = image.resize((new_w, new_h))
|
252 |
img = np.array(resized_image)
|
253 |
|
254 |
if (np.max(img) > 100):
|