Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ def predict(image_base64):
|
|
| 87 |
|
| 88 |
try:
|
| 89 |
|
| 90 |
-
image_resized = cv2.resize(image_np, (256, 256))
|
| 91 |
image_resized = np.expand_dims(image_resized, axis=0)
|
| 92 |
|
| 93 |
|
|
@@ -106,7 +106,7 @@ def predict(image_base64):
|
|
| 106 |
|
| 107 |
blended_image = image_np.copy()
|
| 108 |
plt.imshow(blended_image)
|
| 109 |
-
plt.imshow(mask_resized
|
| 110 |
plt.axis("off")
|
| 111 |
|
| 112 |
|
|
|
|
| 87 |
|
| 88 |
try:
|
| 89 |
|
| 90 |
+
image_resized = cv2.resize(image_np, (256, 256))
|
| 91 |
image_resized = np.expand_dims(image_resized, axis=0)
|
| 92 |
|
| 93 |
|
|
|
|
| 106 |
|
| 107 |
blended_image = image_np.copy()
|
| 108 |
plt.imshow(blended_image)
|
| 109 |
+
plt.imshow(mask_resized)
|
| 110 |
plt.axis("off")
|
| 111 |
|
| 112 |
|