Instructions to use Sanjay1234/sample-project with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Sanjay1234/sample-project with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Sanjay1234/sample-project") 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/sample-project with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("Sanjay1234/sample-project") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
a558e92 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:161e6ab8fef10cc2299e35f31249b2fe42ad292dca0eaade57b2f3eb28527f68
size 438009257
|