Downloads · 30 days
22
1% of all-time downloads
philschmid/DistilBERT-Banking77
DistilBERT-Banking77 is a text classification model from philschmid. Use it when you need a label for a piece of text. It is set up for transformers.
- Problem type: Multi-class Classification - Model ID: 940131045 - CO2 Emissions (in grams): 5.632805352029529
Downloads · 30 days
22
1% of all-time downloads
All-time downloads
3.3K
Public
Repo size
536 MB
Likes
0
Public
Click a slice to open those files.
.bin268 MB · 100%
From the Hugging Face model README
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/philschmid/autotrain-does-it-work-940131045
Or Python API:
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
model_id = 'philschmid/DistilBERT-Banking77'
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
classifier = pipeline('text-classification', tokenizer=tokenizer, model=model)
classifier('What is the base of the exchange rates?')