Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
peb-peb/shravan
peb-peb
/
shravan_duplicate
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
3788fdf
shravan_duplicate
/
topic.py
peb-peb
Duplicate from peb-peb/shravan
3788fdf
almost 2 years 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)