Spaces:
Runtime error
Runtime error
Commit
·
c2029dd
1
Parent(s):
045f0da
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 = tf.convert_to_tensor(image)
|
12 |
-
image =
|
13 |
image = image / 127.5 - 1
|
14 |
return image
|
15 |
|
|
|
9 |
|
10 |
def read_image(image):
|
11 |
image = tf.convert_to_tensor(image)
|
12 |
+
image = tf.image.resize(images=image, size=[img_size, img_size])
|
13 |
image = image / 127.5 - 1
|
14 |
return image
|
15 |
|