Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ if uploaded_img is not None:
|
|
14 |
st.image(uploaded_img)
|
15 |
img = Image.open(uploaded_img).resize((160, 160))
|
16 |
img = np.array(img)
|
17 |
-
result =
|
18 |
st.write(f"Your prediction is: {result}")
|
19 |
|
20 |
|
|
|
14 |
st.image(uploaded_img)
|
15 |
img = Image.open(uploaded_img).resize((160, 160))
|
16 |
img = np.array(img)
|
17 |
+
result = loaded_model.predict(img[None,:,:])
|
18 |
st.write(f"Your prediction is: {result}")
|
19 |
|
20 |
|