Instructions to use Osiris/emotion_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Osiris/emotion_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Osiris/emotion_classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Osiris/emotion_classifier") model = AutoModelForSequenceClassification.from_pretrained("Osiris/emotion_classifier") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -7,7 +7,7 @@ LABEL_0: Negative (have negative emotion)
|
|
| 7 |
### Usage:
|
| 8 |
```python
|
| 9 |
>>> from transformers import pipeline
|
| 10 |
-
>>> ec = pipeline('
|
| 11 |
>>> ec("Hello, I'm a good model.")
|
| 12 |
```
|
| 13 |
|
|
|
|
| 7 |
### Usage:
|
| 8 |
```python
|
| 9 |
>>> from transformers import pipeline
|
| 10 |
+
>>> ec = pipeline('text-classification', model='Osiris/emotion_classifier')
|
| 11 |
>>> ec("Hello, I'm a good model.")
|
| 12 |
```
|
| 13 |
|