SalmanAboAraj commited on
Commit
ae56d88
·
verified ·
1 Parent(s): 407a1f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -87,7 +87,7 @@ def predict(image_base64):
87
 
88
  try:
89
 
90
- image_resized = cv2.resize(image_np, (256, 256)) / 255.0
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, alpha=0.5)
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