Instructions to use HyukII/text-emotion-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HyukII/text-emotion-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="HyukII/text-emotion-model")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("HyukII/text-emotion-model") model = AutoModelForSequenceClassification.from_pretrained("HyukII/text-emotion-model") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -15,6 +15,6 @@ library_name: transformers
|
|
| 15 |
|
| 16 |
## Usage
|
| 17 |
```python
|
| 18 |
-
from transformers import
|
| 19 |
tok = AutoTokenizer.from_pretrained("HyukII/my-emotion-text")
|
| 20 |
model = AutoModelForSequenceClassification.from_pretrained("HyukII/my-emotion-text").eval()
|
|
|
|
| 15 |
|
| 16 |
## Usage
|
| 17 |
```python
|
| 18 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 19 |
tok = AutoTokenizer.from_pretrained("HyukII/my-emotion-text")
|
| 20 |
model = AutoModelForSequenceClassification.from_pretrained("HyukII/my-emotion-text").eval()
|