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