Edit model card
YAML Metadata Error: "datasets[0]" with value "Fake and real news datasets by CLÉMENT BISAILLON" is not valid. It should not contain any whitespace. If possible, use a dataset id from the huggingface Hub.
YAML Metadata Error: "tags" must be an array

Model Trained Using AutoTrain

  • Problem: Fake News Classification
  • Problem type: Binary Classification
  • Model ID: 785124234
  • CO2 Emissions (in grams): 4.415122243239347

Validation Metrics

  • Loss: 0.00012586714001372457
  • Accuracy: 0.9998886538247411
  • Precision: 1.0
  • Recall: 0.9997665732959851
  • AUC: 0.9999999999999999
  • F1: 0.999883273024396


You can use cURL to access this model:

$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/Nithiwat/autotrain-fake-news-classifier-785124234

Or Python API:

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("Nithiwat/autotrain-fake-news-classifier-785124234", use_auth_token=True)

tokenizer = AutoTokenizer.from_pretrained("Nithiwat/autotrain-fake-news-classifier-785124234", use_auth_token=True)

inputs = tokenizer("I love AutoTrain", return_tensors="pt")

outputs = model(**inputs)
Downloads last month
Hosted inference API
Text Classification
This model can be loaded on the Inference API on-demand.