Gosula commited on
Commit
adee0ea
·
1 Parent(s): 5c00344

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(model.predict(image1)))
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"]))