Update README.md
Browse files
README.md
CHANGED
|
@@ -8,15 +8,3 @@ pinned: false
|
|
| 8 |
thumbnail: >-
|
| 9 |
https://cdn-uploads.huggingface.co/production/uploads/63bc254fb8c61b8aa496a39b/UtMrCZBi4n68fswikUtl6.png
|
| 10 |
---
|
| 11 |
-
<script type="module">
|
| 12 |
-
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected]';
|
| 13 |
-
</script>
|
| 14 |
-
<script>
|
| 15 |
-
import { pipeline } from '@huggingface/transformers';
|
| 16 |
-
|
| 17 |
-
// Allocate a pipeline for sentiment-analysis
|
| 18 |
-
let pipe = await pipeline('sentiment-analysis');
|
| 19 |
-
|
| 20 |
-
let out = await pipe('I love transformers!');
|
| 21 |
-
// [{'label': 'POSITIVE', 'score': 0.999817686}]
|
| 22 |
-
</script>
|
|
|
|
| 8 |
thumbnail: >-
|
| 9 |
https://cdn-uploads.huggingface.co/production/uploads/63bc254fb8c61b8aa496a39b/UtMrCZBi4n68fswikUtl6.png
|
| 10 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|