Spaces:
Runtime error
Runtime error
Commit
·
b8bdcdd
1
Parent(s):
279cced
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ img_size = 28
|
|
8 |
model = from_pretrained_keras("keras-io/keras-reptile")
|
9 |
|
10 |
def read_image(image):
|
11 |
-
|
12 |
-
image = tf.image.resize(images=image,
|
13 |
return image
|
14 |
|
15 |
def infer(model, image):
|
|
|
8 |
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(images=image,(28,28,1))
|
13 |
return image
|
14 |
|
15 |
def infer(model, image):
|