Instructions to use HamzaFarhan/PDFSetFit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use HamzaFarhan/PDFSetFit with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("HamzaFarhan/PDFSetFit") 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 HamzaFarhan/PDFSetFit with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("HamzaFarhan/PDFSetFit") - Notebooks
- Google Colab
- Kaggle
Commit ·
ca37a08
1
Parent(s): 563b3d6
Update README.md
Browse files
README.md
CHANGED
|
@@ -30,7 +30,7 @@ from setfit import SetFitModel
|
|
| 30 |
# Download from Hub and run inference
|
| 31 |
model = SetFitModel.from_pretrained("HamzaFarhan/PDFSetFit")
|
| 32 |
# Run inference
|
| 33 |
-
preds = model(["
|
| 34 |
```
|
| 35 |
|
| 36 |
## BibTeX entry and citation info
|
|
|
|
| 30 |
# Download from Hub and run inference
|
| 31 |
model = SetFitModel.from_pretrained("HamzaFarhan/PDFSetFit")
|
| 32 |
# Run inference
|
| 33 |
+
preds = model(["Working with development team for implementation of the designs.", "Studied at my great high school."])
|
| 34 |
```
|
| 35 |
|
| 36 |
## BibTeX entry and citation info
|