Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Duplicated from
peb-peb/shravan
Rahul04052000
/
shravan
like
0
Sleeping
App
Files
Files
Community
6086f8c
shravan
/
topic.py
peb-peb
fix topic
9603f5e
over 1 year ago
raw
Copy download link
history
blame
Safe
156 Bytes
from
transformers
import
pipeline
def
topic_gen
(
text
):
topic = pipeline(
"text2text-generation"
, model=
"knkarthick/TOPIC-DIALOGSUM"
)
return
topic(text)