Xenova HF staff commited on
Commit
64c6686
1 Parent(s): 2694964

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
index.js CHANGED
@@ -57,10 +57,10 @@ async function detect(url) {
57
  status.textContent = 'Analysing...';
58
 
59
  // Preprocess image
60
- const { pixel_values } = await processor(image);
61
 
62
  // Predict bounding boxes
63
- const { output0 } = await model({ images: pixel_values });
64
 
65
  status.textContent = '';
66
 
 
57
  status.textContent = 'Analysing...';
58
 
59
  // Preprocess image
60
+ const inputs = await processor(image);
61
 
62
  // Predict bounding boxes
63
+ const { output0 } = await model({ images: inputs.pixel_values });
64
 
65
  status.textContent = '';
66