Xenova HF Staff commited on
Commit
8f51517
·
verified ·
1 Parent(s): ed1db44

Update to Transformers.js v3

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -10,13 +10,13 @@ https://huggingface.co/facebook/detr-resnet-50 with ONNX weights to be compatibl
10
 
11
  If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@xenova/transformers) using:
12
  ```bash
13
- npm i @xenova/transformers
14
  ```
15
 
16
  **Example:** Perform object-detection with `Xenova/detr-resnet-50`.
17
 
18
  ```js
19
- import { pipeline } from '@xenova/transformers';
20
 
21
  const detector = await pipeline('object-detection', 'Xenova/detr-resnet-50');
22
 
 
10
 
11
  If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@xenova/transformers) using:
12
  ```bash
13
+ npm i @huggingface/transformers
14
  ```
15
 
16
  **Example:** Perform object-detection with `Xenova/detr-resnet-50`.
17
 
18
  ```js
19
+ import { pipeline } from '@huggingface/transformers';
20
 
21
  const detector = await pipeline('object-detection', 'Xenova/detr-resnet-50');
22