shravan / topic.py
peb-peb's picture
add summary topic sentiment features
ca9e7bd
raw
history blame
157 Bytes
from transformers import pipeline
def topic_gen(text):
topic = pipeline(" Text2Text Generation", model="knkarthick/TOPIC-DIALOGSUM")
return topic(text)