sand74 commited on
Commit
1d3b30f
·
verified ·
1 Parent(s): 596b818

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -60,7 +60,7 @@ def get_depth_image(image):
60
  depth_estimator = pipeline('depth-estimation')
61
  pil_image = depth_estimator(pil_image)['depth']
62
  pil_image = np.array(pil_image)
63
- pil_image = pil_image[:, None]
64
  pil_image = np.concatenate([pil_image, pil_image, pil_image], axis=2)
65
  return PIL.Image.fromarray(pil_image)
66
 
 
60
  depth_estimator = pipeline('depth-estimation')
61
  pil_image = depth_estimator(pil_image)['depth']
62
  pil_image = np.array(pil_image)
63
+ pil_image = pil_image[:, :, None]
64
  pil_image = np.concatenate([pil_image, pil_image, pil_image], axis=2)
65
  return PIL.Image.fromarray(pil_image)
66