system's picture
system HF staff
Commit From AutoTrain
f4ed8b7
metadata
tags:
  - autotrain
  - text-classification
language:
  - en
widget:
  - text: I love AutoTrain 🤗
datasets:
  - ranajoy98/autotrain-data-contract_types
co2_eq_emissions:
  emissions: 0.004185439260806501

Model Trained Using AutoTrain

  • Problem type: Multi-class Classification
  • Model ID: 2926484993
  • CO2 Emissions (in grams): 0.0042

Validation Metrics

  • Loss: 0.106
  • Accuracy: 0.981
  • Macro F1: 0.977
  • Micro F1: 0.981
  • Weighted F1: 0.980
  • Macro Precision: 0.983
  • Micro Precision: 0.981
  • Weighted Precision: 0.982
  • Macro Recall: 0.975
  • Micro Recall: 0.981
  • Weighted Recall: 0.981

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/ranajoy98/autotrain-contract_types-2926484993

Or Python API:

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("ranajoy98/autotrain-contract_types-2926484993", use_auth_token=True)

tokenizer = AutoTokenizer.from_pretrained("ranajoy98/autotrain-contract_types-2926484993", use_auth_token=True)

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

outputs = model(**inputs)