Example usage and demo results in different output
#34
by
Lordiq
- opened
I have implemented everything as described, unfortunately I get a different output than in the demo.
What am I doing wrong? Or what exactly is done in the demo? Because my output is grammatically wrong
from transformers import pipeline
def sum(text):
summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
print(summarizer(text, max_length=130, min_length=30, do_sample=False))