Instructions to use JoshELambert/fishconflict_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use JoshELambert/fishconflict_classifier with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("JoshELambert/fishconflict_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/fishconflict_classifier with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("JoshELambert/fishconflict_classifier") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Update requirements.txt
Browse files- requirements.txt +1 -1
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
setfit==0.3.0
|
| 2 |
huggingface_hub==0.23
|
| 3 |
-
accelerate
|
| 4 |
protobuf==3.23
|
|
|
|
| 1 |
setfit==0.3.0
|
| 2 |
huggingface_hub==0.23
|
| 3 |
+
accelerate==0.31.0
|
| 4 |
protobuf==3.23
|