Views
No views yet
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love this product! One of my best purchases this year."}' https://api-inference.huggingface.co/models/madmancity/revmlcfrom transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("madmancity/revmlc", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("madmancity/revmlc", use_auth_token=True)
inputs = tokenizer("I love this product! One of my best purchases this year.", return_tensors="pt")
outputs = model(**inputs)