vahidrezanezhad commited on
Commit
1603a4c
·
verified ·
1 Parent(s): ed88d55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from huggingface_hub import from_pretrained_keras
8
 
9
  def greet(image):
10
  model = from_pretrained_keras("vahidrezanezhad/sbb_binarization")
11
- prediction = model.predict(image)
12
  prediction = tf.squeeze(tf.round(prediction))
13
 
14
  print(prediction.shape)
 
8
 
9
  def greet(image):
10
  model = from_pretrained_keras("vahidrezanezhad/sbb_binarization")
11
+ prediction = model.predict(image.reshape(1,image.shape[0],image.shape[1],image.shape[2]))
12
  prediction = tf.squeeze(tf.round(prediction))
13
 
14
  print(prediction.shape)