Instructions to use Sanjay1234/Zero-Shot-Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Sanjay1234/Zero-Shot-Classification with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Sanjay1234/Zero-Shot-Classification") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - setfit
How to use Sanjay1234/Zero-Shot-Classification with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("Sanjay1234/Zero-Shot-Classification") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Download model_head.pkl from Sanjay1234/Zero-Shot-Classification: direct link, hf CLI and curl.
- Browser
- Download file 19.3 kB
-
https://huggingface.co/Sanjay1234/Zero-Shot-Classification/resolve/main/model_head.pkl
- Command line
-
hf download hf://Sanjay1234/Zero-Shot-Classification/model_head.pkl
-
curl -L -o model_head.pkl https://huggingface.co/Sanjay1234/Zero-Shot-Classification/resolve/main/model_head.pkl
19.3 kB
- Xet hash:
- 34c6f5841f64bb9ed961fbd9d876a2717ca80971775d6a9c5c34d3e0db822fa2
- Size of remote file:
- 19.3 kB
- SHA256:
- 38747764a1e5cab9fed9df60527f01bd1bc7f55007dea0fb793a65e89f3710ad
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.