Text Classification
Transformers
Safetensors
English
distilbert
emotion-detection
Eval Results (legacy)
text-embeddings-inference
Instructions to use YamenRM/Emotion_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use YamenRM/Emotion_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="YamenRM/Emotion_model")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("YamenRM/Emotion_model") model = AutoModelForSequenceClassification.from_pretrained("YamenRM/Emotion_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +3 -1
config.json
CHANGED
|
@@ -35,4 +35,6 @@
|
|
| 35 |
"love": 2,
|
| 36 |
"anger": 3,
|
| 37 |
"fear": 4,
|
| 38 |
-
"surprise
|
|
|
|
|
|
|
|
|
| 35 |
"love": 2,
|
| 36 |
"anger": 3,
|
| 37 |
"fear": 4,
|
| 38 |
+
"surprise": 5
|
| 39 |
+
}
|
| 40 |
+
}
|