Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ f = st.file_uploader("Choose a Photo")
|
|
| 12 |
if f is not None:
|
| 13 |
img = Image.open(f)
|
| 14 |
img = img.resize((256,256))
|
| 15 |
-
img = np.reshape(img,(1,
|
| 16 |
pred,pred2 = model.predict(img),model2.predict(img)
|
| 17 |
|
| 18 |
st.image(img,use_column_width=True)
|
|
|
|
| 12 |
if f is not None:
|
| 13 |
img = Image.open(f)
|
| 14 |
img = img.resize((256,256))
|
| 15 |
+
img = np.reshape(img,(1,256,256,3))
|
| 16 |
pred,pred2 = model.predict(img),model2.predict(img)
|
| 17 |
|
| 18 |
st.image(img,use_column_width=True)
|