shravan_duplicate / summary.py
peb-peb's picture
Duplicate from peb-peb/shravan
3788fdf
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)