Download test_model.py from SaitejaJate/Binary_classifier: direct link, hf CLI and curl.
- Browser
- Download file 290 Bytes
-
https://huggingface.co/SaitejaJate/Binary_classifier/resolve/main/test_model.py
- Command line
-
hf download hf://SaitejaJate/Binary_classifier/test_model.py
-
curl -L -o test_model.py https://huggingface.co/SaitejaJate/Binary_classifier/resolve/main/test_model.py
290 Bytes
| from binary_classifier import CBTBinaryClassifier | |
| classifier = CBTBinaryClassifier() | |
| classifier.load_model('./cbt_classifier') | |
| result = classifier.predict('I am happy cause I finished all of my tasks') | |
| print(f"Prediction: {result['is_cbt_trigger']}, Confidence: {result['confidence']:.3f}") |