MatthewB245
commited on
Commit
•
b878213
1
Parent(s):
7ed447f
Update README.md
Browse files
README.md
CHANGED
@@ -27,13 +27,15 @@ This model fine-tunes DistilBERT for a multi-class emotion classification task.
|
|
27 |
- Weight Decay: 0.01
|
28 |
|
29 |
## Usage
|
30 |
-
|
31 |
from transformers import pipeline
|
32 |
classifier = pipeline("text-classification",
|
33 |
model="your-username/emotion-classification-model")
|
34 |
text = "I’m so happy today!"
|
35 |
result = classifier(text)
|
36 |
print(result)
|
37 |
-
|
|
|
|
|
38 |
## Limitations
|
39 |
[Discuss any limitations you observed...]
|
|
|
27 |
- Weight Decay: 0.01
|
28 |
|
29 |
## Usage
|
30 |
+
```python
|
31 |
from transformers import pipeline
|
32 |
classifier = pipeline("text-classification",
|
33 |
model="your-username/emotion-classification-model")
|
34 |
text = "I’m so happy today!"
|
35 |
result = classifier(text)
|
36 |
print(result)
|
37 |
+
```
|
38 |
+
|
39 |
+
|
40 |
## Limitations
|
41 |
[Discuss any limitations you observed...]
|