Spaces:
Sleeping
Sleeping
nishantguvvada
commited on
Commit
·
0cca7e5
1
Parent(s):
8904fa3
model_prediction
Browse files
app.py
CHANGED
@@ -30,10 +30,7 @@ def model_prediction(image, model):
|
|
30 |
return result
|
31 |
|
32 |
def model_prediction(image, model):
|
33 |
-
|
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"
|