Update README.md
Browse files
README.md
CHANGED
@@ -67,13 +67,10 @@ This emotion classifier has been trained on 89_754 examples split into train, va
|
|
67 |
|
68 |
Usage:
|
69 |
```python
|
70 |
-
from transformers import
|
71 |
-
|
72 |
-
tokenizer = AutoTokenizer.from_pretrained('AdamCodd/distilbert-base-uncased-finetuned-emotion-balanced')
|
73 |
-
model = AutoModelForSequenceClassification.from_pretrained('AdamCodd/distilbert-base-uncased-finetuned-emotion-balanced')
|
74 |
|
75 |
# Create the pipeline
|
76 |
-
emotion_classifier = pipeline('text-classification', model=
|
77 |
|
78 |
# Now you can use the pipeline to classify emotions
|
79 |
result = emotion_classifier("We are delighted that you will be coming to visit us. It will be so nice to have you here.")
|
|
|
67 |
|
68 |
Usage:
|
69 |
```python
|
70 |
+
from transformers import pipeline
|
|
|
|
|
|
|
71 |
|
72 |
# Create the pipeline
|
73 |
+
emotion_classifier = pipeline('text-classification', model='AdamCodd/distilbert-base-uncased-finetuned-emotion-balanced')
|
74 |
|
75 |
# Now you can use the pipeline to classify emotions
|
76 |
result = emotion_classifier("We are delighted that you will be coming to visit us. It will be so nice to have you here.")
|