metadata
tags:
- autotrain
- text-classification
language:
- en
widget:
- text: I love AutoTrain 🤗
datasets:
- raghuram13/autotrain-data-sentiment_analysis
co2_eq_emissions:
emissions: 1.3916852050499846
Model Trained Using AutoTrain
- Problem type: Binary Classification
- Model ID: 39304102733
- CO2 Emissions (in grams): 1.3917
Validation Metrics
- Loss: 0.200
- Accuracy: 0.937
- Precision: 0.936
- Recall: 0.940
- AUC: 0.982
- F1: 0.938
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/raghuram13/autotrain-sentiment_analysis-39304102733
Or Python API:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("raghuram13/autotrain-sentiment_analysis-39304102733", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("raghuram13/autotrain-sentiment_analysis-39304102733", use_auth_token=True)
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
outputs = model(**inputs)