Gosula commited on
Commit
ea273f8
·
1 Parent(s): b51f311

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -111,7 +111,7 @@ if canvas_result.image_data is not None:
111
 
112
  # Correctly reshape the image
113
  image1 = image1.reshape(1, 1, 28, 28).astype('float32')
114
- prediction = np.argmax(cnn.predict(image1))
115
  st.title(f"Handwritten Digit Prediction: {prediction}")
116
 
117
 
 
111
 
112
  # Correctly reshape the image
113
  image1 = image1.reshape(1, 1, 28, 28).astype('float32')
114
+ prediction = cnn.predict(image1)
115
  st.title(f"Handwritten Digit Prediction: {prediction}")
116
 
117