Views
No views yet
pipeline:1from transformers import pipeline
2
3pipe = pipeline("summarization", model="mhmdrza9789/pegasus-samsum-summarizer")
4
5dialogue = """
6Hannah: Hey, do you have any plans for tonight?
7Mark: Not really. Just staying in and watching some Netflix. Why?
8"""
9
10print(pipe(dialogue)[0]['summary_text'])