aryswisnu commited on
Commit
f6eb6d6
1 Parent(s): 5fb6b1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
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)