Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,9 +17,7 @@ labels = {
|
|
17 |
}
|
18 |
|
19 |
|
20 |
-
def preprocess_image(
|
21 |
-
print(type(image_data))
|
22 |
-
image = Image.open(BytesIO(image_data))
|
23 |
img = image.resize((224, 224))
|
24 |
img_array = img_to_array(img)
|
25 |
img_array = np.expand_dims(img_array, axis=0)
|
|
|
17 |
}
|
18 |
|
19 |
|
20 |
+
def preprocess_image(image):
|
|
|
|
|
21 |
img = image.resize((224, 224))
|
22 |
img_array = img_to_array(img)
|
23 |
img_array = np.expand_dims(img_array, axis=0)
|