Commit
·
15a86d6
1
Parent(s):
53afd74
Update README.md
Browse files
README.md
CHANGED
|
@@ -27,7 +27,7 @@ tags:
|
|
| 27 |
|
| 28 |
# How to use
|
| 29 |
|
| 30 |
-
```
|
| 31 |
from transformers import pipeline
|
| 32 |
|
| 33 |
model_path = "NikolajMunch/danish-emotion-classification"
|
|
@@ -39,7 +39,7 @@ print(prediction)
|
|
| 39 |
```
|
| 40 |
|
| 41 |
or
|
| 42 |
-
```
|
| 43 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 44 |
|
| 45 |
tokenizer = AutoTokenizer.from_pretrained("NikolajMunch/danish-emotion-classification")
|
|
|
|
| 27 |
|
| 28 |
# How to use
|
| 29 |
|
| 30 |
+
```python
|
| 31 |
from transformers import pipeline
|
| 32 |
|
| 33 |
model_path = "NikolajMunch/danish-emotion-classification"
|
|
|
|
| 39 |
```
|
| 40 |
|
| 41 |
or
|
| 42 |
+
```python
|
| 43 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 44 |
|
| 45 |
tokenizer = AutoTokenizer.from_pretrained("NikolajMunch/danish-emotion-classification")
|