Edit model card
YAML Metadata Error: "datasets[0]" with value "Fake and real news datasets by CLÉMENT BISAILLON" is not valid. If possible, use a dataset id from https://hf.co/datasets.
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

Usage

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
10
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.