nishantguvvada commited on
Commit
0cca7e5
·
1 Parent(s): 8904fa3

model_prediction

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -30,10 +30,7 @@ def model_prediction(image, model):
30
  return result
31
 
32
  def model_prediction(image, model):
33
- img = cv2.imread(image)
34
- plt.imshow(img)
35
- plt.show()
36
- resize = tf.image.resize(img, (256,256))
37
  yhat = model.predict(np.expand_dims(resize/255, 0))
38
  if(yhat>0.5):
39
  result = "Prediction is loose"
 
30
  return result
31
 
32
  def model_prediction(image, model):
33
+ resize = tf.image.resize(image, (256,256))
 
 
 
34
  yhat = model.predict(np.expand_dims(resize/255, 0))
35
  if(yhat>0.5):
36
  result = "Prediction is loose"