Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
sbthesis
/
test2
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
c303df4
test2
/
app.py
sbthesis
Create app.py
c303df4
over 1 year ago
raw
Copy download link
history
blame
Safe
213 Bytes
from
transformers
import
pipeline
classifier = pipeline(
"zero-shot-classification"
)
classifier(
"This is a course about the Transformers library"
,
candidate_labels=[
"education"
,
"politics"
,
"business"
],
)