Instructions to use JoshELambert/weakgov with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use JoshELambert/weakgov with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("JoshELambert/weakgov") 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/weakgov with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("JoshELambert/weakgov") 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 JoshELambert/weakgov: direct link, hf CLI and curl.
- Browser
- Download file 7.12 kB
-
https://huggingface.co/JoshELambert/weakgov/resolve/main/model_head.pkl
- Command line
-
hf download hf://JoshELambert/weakgov/model_head.pkl
-
curl -L -o model_head.pkl https://huggingface.co/JoshELambert/weakgov/resolve/main/model_head.pkl
7.12 kB
- Xet hash:
- af975eba90cc7039dcbd7deb3c25bc03abc6f91b99b851bf29e10aae21231c86
- Size of remote file:
- 7.12 kB
- SHA256:
- 0b1c1d61eb9ea7aa45f1db0682ed5c9db57982098b3783240920972e6dbe0bc3
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.