shravan_duplicate / topic.py
peb-peb's picture
Duplicate from peb-peb/shravan
3788fdf
raw
history blame contribute delete
No virus
156 Bytes
from transformers import pipeline
def topic_gen(text):
topic = pipeline("text2text-generation", model="knkarthick/TOPIC-DIALOGSUM")
return topic(text)