Views
No views yet
CLIpsy-Tiny is a lightweight and high-speed binary classification model designed to differentiate between natural language inputs and CLI (Command Line Interface) commands.NATURAL vs CLI1from transformers import pipeline
2
3classifier = pipeline("text-classification", model="brahmairesearch/CLIpsy-Tiny")
4
5classifier("git push origin main")
6# [{'label': 'CLI', 'score': 0.98}]
7
8classifier("How do I create a new branch in git?")
9# [{'label': 'NATURAL', 'score': 0.95}]