Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,10 +19,9 @@ def apply_random_mask(img):
|
|
| 19 |
|
| 20 |
def preprocess_image(image):
|
| 21 |
image = np.array(image)
|
| 22 |
-
|
| 23 |
image = cv2.resize(image, (256, 256))
|
| 24 |
image = image / 255.0
|
| 25 |
-
image = apply_random_mask(image)
|
| 26 |
return image
|
| 27 |
|
| 28 |
def predict(image):
|
|
|
|
| 19 |
|
| 20 |
def preprocess_image(image):
|
| 21 |
image = np.array(image)
|
| 22 |
+
image = apply_random_mask(image)
|
| 23 |
image = cv2.resize(image, (256, 256))
|
| 24 |
image = image / 255.0
|
|
|
|
| 25 |
return image
|
| 26 |
|
| 27 |
def predict(image):
|