Xenova HF Staff commited on
Commit
b512a3e
·
verified ·
1 Parent(s): 11a3510

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -20,6 +20,6 @@ import { pipeline } from '@huggingface/transformers';
20
  const detector = await pipeline('object-detection', 'onnx-community/rfdetr_small-ONNX');
21
 
22
  const img = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/cats.jpg';
23
- const output = await detector(img, { threshold: 0.5 });
24
  console.log(output);
25
  ```
 
20
  const detector = await pipeline('object-detection', 'onnx-community/rfdetr_small-ONNX');
21
 
22
  const img = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/cats.jpg';
23
+ const output = await detector(img, { threshold: 0.75 });
24
  console.log(output);
25
  ```