Xenova HF Staff commited on
Commit
3fe6e3d
·
verified ·
1 Parent(s): c25db7d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -21,7 +21,7 @@ import { pipeline } from '@huggingface/transformers';
21
 
22
  const segmenter = await pipeline('background-removal', 'onnx-community/ISNet-ONNX');
23
  const url = 'https://images.pexels.com/photos/5965592/pexels-photo-5965592.jpeg?auto=compress&cs=tinysrgb&w=1024';
24
- const output = await segmenter(url);
25
  output[0].save('mask.png');
26
  // You can also use `output[0].toCanvas()` or `await output[0].toBlob()` if you would like to access the output without saving.
27
  ```
 
21
 
22
  const segmenter = await pipeline('background-removal', 'onnx-community/ISNet-ONNX');
23
  const url = 'https://images.pexels.com/photos/5965592/pexels-photo-5965592.jpeg?auto=compress&cs=tinysrgb&w=1024';
24
+ const output = await segmenter([url]);
25
  output[0].save('mask.png');
26
  // You can also use `output[0].toCanvas()` or `await output[0].toBlob()` if you would like to access the output without saving.
27
  ```