KurtLin commited on
Commit
cdf1836
·
1 Parent(s): c94f7f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,13 +46,13 @@ def inference(image, input_label, model_choice):
46
  img2 = image.copy()
47
  img2[mask2, 0] = 255
48
  img2[y-10:y+10, x-10:x+10, 1] = 255
49
- img1[y-10:y+10, x-10:x+10, 2] = 255
50
  mask3 = masks[2]
51
  score3 = scores[2]
52
  img3 = image.copy()
53
  img3[mask3, 0] = 255
54
  img3[y-10:y+10, x-10:x+10, 1] = 255
55
- img1[y-10:y+10, x-10:x+10, 2] = 255
56
  return f"{score1}", img1, f"{score2}", img2, f"{score3}", img3
57
 
58
 
 
46
  img2 = image.copy()
47
  img2[mask2, 0] = 255
48
  img2[y-10:y+10, x-10:x+10, 1] = 255
49
+ img2[y-10:y+10, x-10:x+10, 2] = 255
50
  mask3 = masks[2]
51
  score3 = scores[2]
52
  img3 = image.copy()
53
  img3[mask3, 0] = 255
54
  img3[y-10:y+10, x-10:x+10, 1] = 255
55
+ img3[y-10:y+10, x-10:x+10, 2] = 255
56
  return f"{score1}", img1, f"{score2}", img2, f"{score3}", img3
57
 
58