Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ with open("classlabel.txt", 'r') as file:
|
|
14 |
|
15 |
# Function to normalize the image
|
16 |
def normalize_image(img):
|
17 |
-
img = tf.cast(img, tf.float32)
|
18 |
img = tf.image.resize(img, (IMG_HEIGHT, IMG_WIDTH), method='bilinear')
|
19 |
return img
|
20 |
|
|
|
14 |
|
15 |
# Function to normalize the image
|
16 |
def normalize_image(img):
|
17 |
+
img = tf.cast(img, tf.float32)/255.
|
18 |
img = tf.image.resize(img, (IMG_HEIGHT, IMG_WIDTH), method='bilinear')
|
19 |
return img
|
20 |
|