sbthesis commited on
Commit
c303df4
·
1 Parent(s): 503d1a5

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+
3
+ classifier = pipeline("zero-shot-classification")
4
+ classifier(
5
+ "This is a course about the Transformers library",
6
+ candidate_labels=["education", "politics", "business"],
7
+ )