unnati026 commited on
Commit
d0d3f5a
·
1 Parent(s): 9a06378

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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