Tobias Cornille commited on
Commit
d241411
1 Parent(s): 9620a3b

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
index.js CHANGED
@@ -43,8 +43,8 @@ async function detect(img) {
43
 
44
  status.textContent = 'Analysing...';
45
  const candidate_labels = ['human face', 'rocket', 'helmet', 'american flag'];
46
- const output = await detector('https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/astronaut.png', candidate_labels);
47
- console.error(output);
48
  status.textContent = '';
49
  output.forEach(renderBox);
50
  }
 
43
 
44
  status.textContent = 'Analysing...';
45
  const candidate_labels = ['human face', 'rocket', 'helmet', 'american flag'];
46
+ const output = await detector(img, candidate_labels);
47
+ console.error(img, output);
48
  status.textContent = '';
49
  output.forEach(renderBox);
50
  }