Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,7 @@ if canvas_result.image_data is not None:
|
|
110 |
|
111 |
# Correctly reshape the image
|
112 |
image1 = image1.reshape(1, 1, 28, 28).astype('float32')
|
113 |
-
st.title(np.argmax(
|
114 |
|
115 |
if canvas_result.json_data is not None:
|
116 |
st.dataframe(pd.json_normalize(canvas_result.json_data["objects"]))
|
|
|
110 |
|
111 |
# Correctly reshape the image
|
112 |
image1 = image1.reshape(1, 1, 28, 28).astype('float32')
|
113 |
+
st.title(np.argmax(cnn.predict(image1)))
|
114 |
|
115 |
if canvas_result.json_data is not None:
|
116 |
st.dataframe(pd.json_normalize(canvas_result.json_data["objects"]))
|