Downloads · 30 days
26
6% of all-time downloads
MMars/marbertv2_flodusta
marbertv2_flodusta is a text classification model from MMars. Use it when you need a label for a piece of text. It is set up for transformers.
Downloads · 30 days
26
6% of all-time downloads
All-time downloads
426
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.bin651 MB · 99%
From the Hugging Face model README
0 non event
1 flood
2 dust storm
3 traffic accident
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/MMars/autotrain-marbertv2_flodusta-2782682135
Or Python API:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("MMars/marbertv2_flodusta", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("MMars/marbertv2_flodusta", use_auth_token=True)
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
outputs = model(**inputs)