Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,9 +16,9 @@ def Prediction_VGG16(image):
|
|
| 16 |
#Prepare image
|
| 17 |
IMG_SIZE = 224
|
| 18 |
image = img_to_array(image)
|
| 19 |
-
image = image*
|
| 20 |
img_prepared = image.reshape((-1,IMG_SIZE,IMG_SIZE,3))
|
| 21 |
-
|
| 22 |
|
| 23 |
#Load model vgg6 package
|
| 24 |
path = "model_vgg16.h5"
|
|
|
|
| 16 |
#Prepare image
|
| 17 |
IMG_SIZE = 224
|
| 18 |
image = img_to_array(image)
|
| 19 |
+
image = image*1.0/255.0
|
| 20 |
img_prepared = image.reshape((-1,IMG_SIZE,IMG_SIZE,3))
|
| 21 |
+
|
| 22 |
|
| 23 |
#Load model vgg6 package
|
| 24 |
path = "model_vgg16.h5"
|