Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def load_image(image_path, max_dim):
|
|
| 18 |
|
| 19 |
|
| 20 |
def deprocess_inception_image(img):
|
| 21 |
-
img = np.array(img)
|
| 22 |
img = 255 * (img + 1) / 2
|
| 23 |
return np.array(img, np.uint8)
|
| 24 |
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
def deprocess_inception_image(img):
|
| 21 |
+
img = np.array(img).astype(np.uint8)
|
| 22 |
img = 255 * (img + 1) / 2
|
| 23 |
return np.array(img, np.uint8)
|
| 24 |
|