vahidrezanezhad commited on
Commit
7854bc4
·
verified ·
1 Parent(s): de95e10

Update app.py

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