shravan / summary.py
remotewith's picture
Duplicate from peb-peb/shravan
6aff00b
raw
history blame contribute delete
181 Bytes
from transformers import pipeline
def summarizer(text):
summ = pipeline("summarization", model="knkarthick/MEETING-SUMMARY-BART-LARGE-XSUM-SAMSUM-DIALOGSUM")
return summ(text)