Update README.md
Browse files
README.md
CHANGED
|
@@ -6,5 +6,21 @@ base_model:
|
|
| 6 |
pipeline_tag: text-classification
|
| 7 |
---
|
| 8 |
|
| 9 |
-
# Summary
|
| 10 |
emotion classification model with distilbert
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
pipeline_tag: text-classification
|
| 7 |
---
|
| 8 |
|
| 9 |
+
# 🔎 Summary
|
| 10 |
emotion classification model with distilbert
|
| 11 |
+
|
| 12 |
+
# 🚀 Quick start (Python)
|
| 13 |
+
|
| 14 |
+
### Installation
|
| 15 |
+
```bash
|
| 16 |
+
pip install transformers torch
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
### Basic Usage
|
| 20 |
+
```python
|
| 21 |
+
from transformers import pipeline
|
| 22 |
+
|
| 23 |
+
classifier = pipeline("text-classification", model="yoon-eunbin/distilbert-emotion-classification-model")
|
| 24 |
+
result = classifier("I'm so happy today!")
|
| 25 |
+
print(result)
|
| 26 |
+
```
|