Text Classification
Transformers
PyTorch
Safetensors
English
roberta
Trained with AutoTrain
text-embeddings-inference
Instructions to use masonbarnes/discord-message-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use masonbarnes/discord-message-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="masonbarnes/discord-message-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("masonbarnes/discord-message-classifier") model = AutoModelForSequenceClassification.from_pretrained("masonbarnes/discord-message-classifier") - Notebooks
- Google Colab
- Kaggle
Commit ·
d8b4013
1
Parent(s): 19ff375
Update README.md
Browse files
README.md
CHANGED
|
@@ -43,9 +43,9 @@ Or Python API:
|
|
| 43 |
```
|
| 44 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 45 |
|
| 46 |
-
model = AutoModelForSequenceClassification.from_pretrained("
|
| 47 |
|
| 48 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 49 |
|
| 50 |
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
| 51 |
|
|
|
|
| 43 |
```
|
| 44 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 45 |
|
| 46 |
+
model = AutoModelForSequenceClassification.from_pretrained("masonbarnes/discord-message-classifier", use_auth_token=True)
|
| 47 |
|
| 48 |
+
tokenizer = AutoTokenizer.from_pretrained("masonbarnes/discord-message-classifier", use_auth_token=True)
|
| 49 |
|
| 50 |
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
| 51 |
|