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...
294b12e
test2
/
app.py
sbthesis
Update app.py
294b12e
over 1 year ago
raw
Copy download link
history
blame
Safe
214 Bytes
from
transformers
import
pipeline
classifier = pipeline(
"zero-shot-classification"
)
classifier(
"This is a course about the Transformers library"
,
candidate_labels=[
"education"
,
"politics"
,
"business"
],
)