Spaces:
Sleeping
Sleeping
Commit
·
a9ea4ad
1
Parent(s):
e645000
indent
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def model_prediction(path):
|
|
47 |
plt.show()
|
48 |
resize = tf.image.resize(img, (256,256))
|
49 |
with st.spinner('Model is being loaded..'):
|
50 |
-
|
51 |
yhat = model.predict(np.expand_dims(resize/255, 0))
|
52 |
if(yhat>0.5):
|
53 |
print("Prediction is loose")
|
|
|
47 |
plt.show()
|
48 |
resize = tf.image.resize(img, (256,256))
|
49 |
with st.spinner('Model is being loaded..'):
|
50 |
+
model=load_model()
|
51 |
yhat = model.predict(np.expand_dims(resize/255, 0))
|
52 |
if(yhat>0.5):
|
53 |
print("Prediction is loose")
|