Create app.py
Browse files
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 |
+
)
|