Instructions to use JoshELambert/fishcooperation_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use JoshELambert/fishcooperation_classifier with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("JoshELambert/fishcooperation_classifier") 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 JoshELambert/fishcooperation_classifier with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("JoshELambert/fishcooperation_classifier") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Commit History
-
Create handler.py
Verified signature02da5ec -
Create requirements.txt
Verified signatureb64bd32
-
Add SetFit model
d0d9d08 -
initial commit
38d846d