Spaces:
Sleeping
Sleeping
Commit
·
9d76973
1
Parent(s):
fa7aca9
path
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ file = st.file_uploader("Upload an X-ray image", type= ['png', 'jpg'])
|
|
42 |
# return result
|
43 |
|
44 |
def model_prediction(path):
|
45 |
-
resize = tf.image.resize(
|
46 |
with st.spinner('Model is being loaded..'):
|
47 |
model=load_model()
|
48 |
yhat = model.predict(np.expand_dims(resize/255, 0))
|
|
|
42 |
# return result
|
43 |
|
44 |
def model_prediction(path):
|
45 |
+
resize = tf.image.resize(path, (256,256))
|
46 |
with st.spinner('Model is being loaded..'):
|
47 |
model=load_model()
|
48 |
yhat = model.predict(np.expand_dims(resize/255, 0))
|