--- tags: - autotrain - text-classification language: - en widget: - text: "I love AutoTrain" datasets: - yl5212/autotrain-data-2ndtrythreeclass co2_eq_emissions: emissions: 0.1050993877186115 --- # Model Trained Using AutoTrain - Problem type: Multi-class Classification - Model ID: 70322138118 - CO2 Emissions (in grams): 0.1051 ## Validation Metrics - Loss: 1.033 - Accuracy: 0.432 - Macro F1: 0.429 - Micro F1: 0.432 - Weighted F1: 0.434 - Macro Precision: 0.429 - Micro Precision: 0.432 - Weighted Precision: 0.438 - Macro Recall: 0.432 - Micro Recall: 0.432 - Weighted Recall: 0.432 ## 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/yl5212/autotrain-2ndtrythreeclass-70322138118 ``` Or Python API: ``` from transformers import AutoModelForSequenceClassification, AutoTokenizer model = AutoModelForSequenceClassification.from_pretrained("yl5212/autotrain-2ndtrythreeclass-70322138118", use_auth_token=True) tokenizer = AutoTokenizer.from_pretrained("yl5212/autotrain-2ndtrythreeclass-70322138118", use_auth_token=True) inputs = tokenizer("I love AutoTrain", return_tensors="pt") outputs = model(**inputs) ```