Spaces:
Runtime error
Runtime error
Commit
·
986d5a9
1
Parent(s):
b8bdcdd
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ model = from_pretrained_keras("keras-io/keras-reptile")
|
|
9 |
|
10 |
def read_image(image):
|
11 |
image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
|
12 |
-
image = tf.image.resize(
|
13 |
return image
|
14 |
|
15 |
def infer(model, image):
|
|
|
9 |
|
10 |
def read_image(image):
|
11 |
image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
|
12 |
+
image = tf.image.resize(image,(28,28,1))
|
13 |
return image
|
14 |
|
15 |
def infer(model, image):
|