whitphx HF staff commited on
Commit
1d3a942
·
verified ·
1 Parent(s): 29e6cef

Update index.html to use .to_numpy, which was renamed in Transformers.js.py@0.11.0

Browse files
Files changed (1) hide show
  1. index.html +1 -1
index.html CHANGED
@@ -95,7 +95,7 @@ async def estimate(image_path, depth_scale):
95
  }
96
 
97
  # Construct the 3D model from the depth map and the RGB image
98
- depth = predictions["predicted_depth"].numpy()
99
  depth = invert_depth(depth)
100
  depth = invert_xy(depth)
101
 
 
95
  }
96
 
97
  # Construct the 3D model from the depth map and the RGB image
98
+ depth = predictions["predicted_depth"].to_numpy()
99
  depth = invert_depth(depth)
100
  depth = invert_xy(depth)
101