animeshmaheshwari commited on
Commit
045a5f6
·
1 Parent(s): fb92513

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -13,6 +13,7 @@ examples = examples = [
13
  def inference(original_image):
14
  image = tf.keras.utils.img_to_array(original_image)
15
  image = image.astype("float32") / 255.0
 
16
  image = np.reshape(image, (28, 28, 1))
17
  output = model.predict(image)
18
  return output
 
13
  def inference(original_image):
14
  image = tf.keras.utils.img_to_array(original_image)
15
  image = image.astype("float32") / 255.0
16
+ image = image[:,:,0]
17
  image = np.reshape(image, (28, 28, 1))
18
  output = model.predict(image)
19
  return output