shravan / summary.py
peb-peb's picture
add summary topic sentiment features
ca9e7bd
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)