How can I use the models provided in Hugging Face – The AI community building the future.? For example, if I want to generate the same output as in the example for the hosted interface API for roberta-large-mnli · Hugging Face, how would I get the same result for a text I input?
I see that this is written in “use in transformers”:
from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("roberta-large-mnli") model = AutoModelForSequenceClassification.from_pretrained("roberta-large-mnli")
But I dont know how to apply the downloaded model to my own text?
I’ve tried given this to
classifier = pipeline('roberta-large-mnli') but its not a recognized model.
Any help here would be appreciated.