Instructions to use Xenova/convnext-tiny-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/convnext-tiny-224 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-classification', 'Xenova/convnext-tiny-224');
Update README.md
Browse files
README.md
CHANGED
|
@@ -23,6 +23,7 @@ const classifier = await pipeline('image-classification', 'Xenova/convnext-tiny-
|
|
| 23 |
const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/tiger.jpg';
|
| 24 |
const output = await classifier(url);
|
| 25 |
console.log(output)
|
|
|
|
| 26 |
```
|
| 27 |
|
| 28 |
---
|
|
|
|
| 23 |
const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/tiger.jpg';
|
| 24 |
const output = await classifier(url);
|
| 25 |
console.log(output)
|
| 26 |
+
// [{ label: 'tiger, Panthera tigris', score: 0.6153212785720825 }]
|
| 27 |
```
|
| 28 |
|
| 29 |
---
|