Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ uploaded_img = st.file_uploader("Upload your file here...",type=['png', 'jpeg',
|
|
12 |
|
13 |
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 = model.predict(img[None,:,:])
|
18 |
st.write(f"Your prediction is: {result}")
|
|
|
12 |
|
13 |
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 = model.predict(img[None,:,:])
|
18 |
st.write(f"Your prediction is: {result}")
|