usama1355 commited on
Commit
db48d3d
·
verified ·
1 Parent(s): b4c83b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -327,7 +327,7 @@ async def predict_tomato(file: UploadFile = File(...)):
327
  "message": "Please upload a clear image of a PLANT leaf."
328
  })
329
 
330
- image_array = np.array(image)
331
  white_mask = (
332
  (image_array[:, :, 0] > 240) &
333
  (image_array[:, :, 1] > 240) &
 
327
  "message": "Please upload a clear image of a PLANT leaf."
328
  })
329
 
330
+ image_array = np.array(image)
331
  white_mask = (
332
  (image_array[:, :, 0] > 240) &
333
  (image_array[:, :, 1] > 240) &