Spaces:
Sleeping
Sleeping
Update
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ model = tf.keras.models.load_model("best_model_mobilenetv2_finetune.h5")
|
|
| 8 |
def process(img):
|
| 9 |
img = img.resize((224,224))
|
| 10 |
img = np.array(img) / 255.0
|
| 11 |
-
return np.expand_dims(img, axis=
|
| 12 |
|
| 13 |
def predict(img):
|
| 14 |
img = process(img)
|
|
|
|
| 8 |
def process(img):
|
| 9 |
img = img.resize((224,224))
|
| 10 |
img = np.array(img) / 255.0
|
| 11 |
+
return np.expand_dims(img, axis=0)
|
| 12 |
|
| 13 |
def predict(img):
|
| 14 |
img = process(img)
|