KilicMehmet commited on
Commit
515863d
·
verified ·
1 Parent(s): 7e34b35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ with col2:
36
  image_data = np.array(canvas_result.image_data)
37
  image_data = image_data.astype(np.uint8)
38
  image = Image.fromarray(image_data)
39
- image = image.resize((14, 14)).convert("L")
40
  image = np.array(image).reshape((1, 28, 28, 1)) / 255.0
41
 
42
  prediction = model.predict(image)
 
36
  image_data = np.array(canvas_result.image_data)
37
  image_data = image_data.astype(np.uint8)
38
  image = Image.fromarray(image_data)
39
+ image = image.resize((28, 28)).convert("L")
40
  image = np.array(image).reshape((1, 28, 28, 1)) / 255.0
41
 
42
  prediction = model.predict(image)