Update to Transformers.js v3
Browse files
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 @
|
14 |
```
|
15 |
|
16 |
**Example:** Perform object-detection with `Xenova/detr-resnet-50`.
|
17 |
|
18 |
```js
|
19 |
-
import { pipeline } from '@
|
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 |
|