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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -18,6 +18,7 @@ def load_image(image_path, max_dim):
18
 
19
 
20
  def deprocess_inception_image(img):
 
21
  img = 255 * (img + 1) / 2
22
  return np.array(img, np.uint8)
23
 
 
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