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