antoyo123 commited on
Commit
024ad12
1 Parent(s): 4c9dba7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ def process_image(image, prompt):
39
  # Convert mask to grayscale format
40
  mask_image = mask_image.resize((image.shape[1], image.shape[0]))
41
  mask_image = cv2.cvtColor(np.array(mask_image), cv2.COLOR_RGB2GRAY)
42
- mask_image = cv2.threshold(mask_image, 80, 255, cv2.THRESH_BINARY)[1]
43
 
44
 
45
 
 
39
  # Convert mask to grayscale format
40
  mask_image = mask_image.resize((image.shape[1], image.shape[0]))
41
  mask_image = cv2.cvtColor(np.array(mask_image), cv2.COLOR_RGB2GRAY)
42
+ mask_image = cv2.threshold(mask_image, 70, 255, cv2.THRESH_BINARY)[1]
43
 
44
 
45