MicahB commited on
Commit
d3b7919
·
verified ·
1 Parent(s): 97ccdf5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -6
README.md CHANGED
@@ -39,20 +39,22 @@ It was fine-tuned on:
39
 
40
  # How to Use
41
 
42
- ```python
43
- from transformers import pipeline
44
- classifier = pipeline("sentiment-analysis", model="michellejieli/emotion_text_classifier")
45
- classifier("I love this!")
 
 
46
  ```
47
 
48
- ```python
49
  Output:
50
  [{'label': 'joy', 'score': 0.9887555241584778}]
51
  ```
52
 
53
  # Contact
54
 
55
- Please reach out to [michelleli1999@gmail.com](mailto:michelleli1999@gmail.com) if you have any questions or feedback.
56
 
57
 
58
  # Reference
 
39
 
40
  # How to Use
41
 
42
+ ```js
43
+ const { pipeline } = await import('@xenova/transformers');
44
+
45
+ // Allocate pipeline
46
+ const pipe = await pipeline('text-classification', 'MicahB/emotion_text_classifier');
47
+ console.log(await pipe("womp womp"));
48
  ```
49
 
50
+ ```js
51
  Output:
52
  [{'label': 'joy', 'score': 0.9887555241584778}]
53
  ```
54
 
55
  # Contact
56
 
57
+ Please reach out to [micahbushman.school@gmail.com](mailto:micahbushman.school@gmail.com) if you have any questions or feedback.
58
 
59
 
60
  # Reference