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