Instructions to use aswinsson/fake_new_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aswinsson/fake_new_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="aswinsson/fake_new_classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("aswinsson/fake_new_classifier") model = AutoModelForSequenceClassification.from_pretrained("aswinsson/fake_new_classifier") - Notebooks
- Google Colab
- Kaggle
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("aswinsson/fake_new_classifier")
model = AutoModelForSequenceClassification.from_pretrained("aswinsson/fake_new_classifier")Quick Links
The fake news classifer built using distillbert uncased. Created for the Fatima Fellowship coding challenge and trained on P100 instance for 3 epochs. The model is a binary classifier which predicts 1 in case of real news.
Library: transformers
Language: English
Dataset: https://www.kaggle.com/datasets/clmentbisaillon/fake-and-real-news-dataset
- Downloads last month
- 9
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="aswinsson/fake_new_classifier")