Instructions to use therealcyberlord/fake-news-classification-distilbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use therealcyberlord/fake-news-classification-distilbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="therealcyberlord/fake-news-classification-distilbert")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("therealcyberlord/fake-news-classification-distilbert") model = AutoModelForSequenceClassification.from_pretrained("therealcyberlord/fake-news-classification-distilbert") - Notebooks
- Google Colab
- Kaggle
therealcyberlord commited on
Commit ·
fac9a76
1
Parent(s): 1b3735e
config.json
Browse files- config.json +2 -2
config.json
CHANGED
|
@@ -15,8 +15,8 @@
|
|
| 15 |
},
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
"label2id": {
|
| 18 |
-
"
|
| 19 |
-
"
|
| 20 |
},
|
| 21 |
"max_position_embeddings": 512,
|
| 22 |
"model_type": "distilbert",
|
|
|
|
| 15 |
},
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
"label2id": {
|
| 18 |
+
"Fake": 0,
|
| 19 |
+
"Real": 1
|
| 20 |
},
|
| 21 |
"max_position_embeddings": 512,
|
| 22 |
"model_type": "distilbert",
|