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