Austria Belgium Denmark Finland France Germany Israel Italy Netherlands Norway Poland Portugal Saudi Arabia South Africa Spain Sweden Switzerland Turkey United Arab Emirates United Kingdom United States
---
tags: autotrain
language: en
widget:
- text: "I love AutoTrain 🤗"
datasets:
- mhaegeman/autotrain-data-country-recognition
co2_eq_emissions: 0.02952188223491361
---

# Model Trained Using AutoTrain

- Problem type: Multi-class Classification
- Model ID: 1059336697
- CO2 Emissions (in grams): 0.02952188223491361

## Validation Metrics

- Loss: 0.06108148396015167
- Accuracy: 0.9879569162920872
- Macro F1: 0.9765004449554612
- Micro F1: 0.9879569162920872
- Weighted F1: 0.9879450113590053
- Macro Precision: 0.9784321161207384
- Micro Precision: 0.9879569162920872
- Weighted Precision: 0.9880404765946114
- Macro Recall: 0.9748417542427885
- Micro Recall: 0.9879569162920872
- Weighted Recall: 0.9879569162920872


## 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/mhaegeman/autotrain-country-recognition-1059336697
```

Or Python API:

```
from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("mhaegeman/autotrain-country-recognition-1059336697", use_auth_token=True)

tokenizer = AutoTokenizer.from_pretrained("mhaegeman/autotrain-country-recognition-1059336697", use_auth_token=True)

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

outputs = model(**inputs)
```