Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|