Edit model card

Model Trained Using AutoTrain

  • Problem type: Binary Classification
  • Model ID: 1252447945
  • CO2 Emissions (in grams): 0.8697

Validation Metrics

  • Loss: 0.188
  • Accuracy: 0.925
  • Precision: 0.926
  • Recall: 0.924
  • AUC: 0.979
  • F1: 0.925

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/yuan1729/autotrain-Law-0_-1252447945

Or Python API:

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("yuan1729/autotrain-Law-0_-1252447945", use_auth_token=True)

tokenizer = AutoTokenizer.from_pretrained("yuan1729/autotrain-Law-0_-1252447945", use_auth_token=True)

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

outputs = model(**inputs)
Downloads last month
6