Created
November 28, 2025 16:05
-
-
Save JessicaWachtel/cc7c84c0a644f78d8ac6c12d0e0e6a17 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| classifier = pipeline("zero-shot-classification") | |
| text_to_classify = "I love my new blender! It makes smoothies so smooth." | |
| candidate_labels = ["electronics", "kitchen appliance", "sports equipment", "furniture"] | |
| result3 = classifier(text_to_classify, candidate_labels) | |
| print(result3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment