File size: 157 Bytes
ca9e7bd
 
 
 
 
1
2
3
4
5
6
from transformers import pipeline

def topic_gen(text):
  topic = pipeline(" Text2Text Generation", model="knkarthick/TOPIC-DIALOGSUM")
  return topic(text)