Text Classification
Transformers
PyTorch
Portuguese
bert
Trained with AutoTrain
text-embeddings-inference
Instructions to use Gabesantos1007/nubank with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Gabesantos1007/nubank with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Gabesantos1007/nubank")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Gabesantos1007/nubank") model = AutoModelForSequenceClassification.from_pretrained("Gabesantos1007/nubank") - Notebooks
- Google Colab
- Kaggle
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Gabesantos1007/nubank")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Gabesantos1007/nubank")
model = AutoModelForSequenceClassification.from_pretrained("Gabesantos1007/nubank")Quick Links
Model Trained Using AutoTrain
- Problem type: Binary Classification
- Model ID: 1277948890
- CO2 Emissions (in grams): 0.0127
Validation Metrics
- Loss: 0.478
- Accuracy: 0.764
- Precision: 0.678
- Recall: 0.741
- AUC: 0.849
- F1: 0.708
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/Gabesantos1007/autotrain-analise_de_sentimento-1277948890
Or Python API:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("Gabesantos1007/autotrain-analise_de_sentimento-1277948890", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("Gabesantos1007/autotrain-analise_de_sentimento-1277948890", use_auth_token=True)
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
outputs = model(**inputs)
- Downloads last month
- -
# Gated model: Login with a HF token with gated access permission hf auth login