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
3422eeb
shravan
/
topic.py
peb-peb
fix topic
9603f5e
about 1 year ago
raw
Copy download link
history
blame
No virus
156 Bytes
from
transformers
import
pipeline
def
topic_gen
(
text
):
topic = pipeline(
"text2text-generation"
, model=
"knkarthick/TOPIC-DIALOGSUM"
)
return
topic(text)