Update README.md
Browse files
README.md
CHANGED
|
@@ -39,20 +39,22 @@ It was fine-tuned on:
|
|
| 39 |
|
| 40 |
# How to Use
|
| 41 |
|
| 42 |
-
```
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
|
|
|
|
|
|
| 46 |
```
|
| 47 |
|
| 48 |
-
```
|
| 49 |
Output:
|
| 50 |
[{'label': 'joy', 'score': 0.9887555241584778}]
|
| 51 |
```
|
| 52 |
|
| 53 |
# Contact
|
| 54 |
|
| 55 |
-
Please reach out to [
|
| 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
|