system's picture
system HF staff
Commit From AutoTrain
340a8a1
metadata
tags:
  - autotrain
  - text-classification
language:
  - en
widget:
  - text: I love AutoTrain 🤗
datasets:
  - reichaves/autotrain-data-creepy-wapo
co2_eq_emissions:
  emissions: 0.34144324532308423

Model Trained Using AutoTrain

  • Problem type: Binary Classification
  • Model ID: 38909102184
  • CO2 Emissions (in grams): 0.3414

Validation Metrics

  • Loss: 0.091
  • Accuracy: 0.985
  • Precision: 1.000
  • Recall: 0.750
  • AUC: 0.984
  • F1: 0.857

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/reichaves/autotrain-creepy-wapo-38909102184

Or Python API:

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("reichaves/autotrain-creepy-wapo-38909102184", use_auth_token=True)

tokenizer = AutoTokenizer.from_pretrained("reichaves/autotrain-creepy-wapo-38909102184", use_auth_token=True)

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

outputs = model(**inputs)