Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
peb-peb/shravan
Rahul04052000
/
shravan
like
0
Sleeping
App
Files
Files
Community
ca9e7bd
shravan
/
topic.py
peb-peb
add summary topic sentiment features
ca9e7bd
over 1 year ago
raw
Copy download link
history
blame
157 Bytes
from
transformers
import
pipeline
def
topic_gen
(
text
):
topic = pipeline(
" Text2Text Generation"
, model=
"knkarthick/TOPIC-DIALOGSUM"
)
return
topic(text)