How can I use pipeline for sequence to sequence classification
Dear All,I uploaded my own pre-trained model to the Huggingface repo, the model is trained on the task sequence to sequence binary “text-classification”. I want to make sure I am doing the code correctly, or there is another way to pass the two sequences to the classifier?My codefrom transformers import AutoModelForSequenceClassification

checkpoint = "aomar85/seq2seqBinaryClassifier"

model = AutoModelForSequenceClassification.from_pretrained(checkpoint)

from transformers import pipeline

from transformers import AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained(checkpoint)

classifier = pipeline("text-classification", model=model,tokenizer=tokenizer)

seq1='الميزنيقيات (الاسم العلمي:†Mesonychia) هي منقرض رتبة من الثدييات تتبع فوق رتبة الوحشيات الظلفية من طائفة الثدييات.'

seq2='ميزنيقيات: رتبة من الثدييات'

classifier(seq1 +'[SEP]'+seq2 )