Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ for filename in os.listdir(directory):
|
|
14 |
allImages.append(f)
|
15 |
|
16 |
def flower_classifier(image):
|
17 |
-
image =
|
18 |
image = tf.image.resize(image, (224, 224))
|
19 |
image = image / 255.0
|
20 |
image = tf.expand_dims(image, 0)
|
|
|
14 |
allImages.append(f)
|
15 |
|
16 |
def flower_classifier(image):
|
17 |
+
image = tf.convert_to_tensor(image, dtype=tf.int8)
|
18 |
image = tf.image.resize(image, (224, 224))
|
19 |
image = image / 255.0
|
20 |
image = tf.expand_dims(image, 0)
|