Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,6 @@ def process_image(image, prompt, threhsold):
|
|
31 |
mask_min = mask.min()
|
32 |
mask_max = mask.max()
|
33 |
mask = (mask - mask_min) / (mask_max - mask_min)
|
34 |
-
mask[mask < threhsold] = 0
|
35 |
|
36 |
fig, ax = plt.subplots()
|
37 |
ax.imshow(image)
|
|
|
31 |
mask_min = mask.min()
|
32 |
mask_max = mask.max()
|
33 |
mask = (mask - mask_min) / (mask_max - mask_min)
|
|
|
34 |
|
35 |
fig, ax = plt.subplots()
|
36 |
ax.imshow(image)
|