procesaur commited on
Commit
57400df
·
verified ·
1 Parent(s): 3bc7da3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -1
README.md CHANGED
@@ -9,4 +9,12 @@ thumbnail: >-
9
  https://cdn-uploads.huggingface.co/production/uploads/63bc254fb8c61b8aa496a39b/UtMrCZBi4n68fswikUtl6.png
10
  ---
11
 
12
- Edit this `README.md` markdown file to author your organization card.
 
 
 
 
 
 
 
 
 
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>