Instructions to use 0x-YuAN/CL_or_not with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 0x-YuAN/CL_or_not with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="0x-YuAN/CL_or_not")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("0x-YuAN/CL_or_not") model = AutoModelForSequenceClassification.from_pretrained("0x-YuAN/CL_or_not") - Notebooks
- Google Colab
- Kaggle
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
- 8