File size: 605 Bytes
d89bd03 3bc7da3 d89bd03 b2bca88 57400df |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
---
title: README
emoji: π
colorFrom: blue
colorTo: indigo
sdk: static
pinned: false
thumbnail: >-
https://cdn-uploads.huggingface.co/production/uploads/63bc254fb8c61b8aa496a39b/UtMrCZBi4n68fswikUtl6.png
---
<script type="module">
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected]';
</script>
<script>
import { pipeline } from '@huggingface/transformers';
// Allocate a pipeline for sentiment-analysis
let pipe = await pipeline('sentiment-analysis');
let out = await pipe('I love transformers!');
// [{'label': 'POSITIVE', 'score': 0.999817686}]
</script> |