Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 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 |
-
|
| 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 |
|