Update README.md
Browse files
README.md
CHANGED
|
@@ -67,6 +67,26 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
| 67 |
|:--------|:---------|
|
| 68 |
| **all** | 0.9756 |
|
| 69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
### Framework Versions
|
| 72 |
- Python: 3.11.10
|
|
|
|
| 67 |
|:--------|:---------|
|
| 68 |
| **all** | 0.9756 |
|
| 69 |
|
| 70 |
+
## Uses
|
| 71 |
+
|
| 72 |
+
### Direct Use for Inference
|
| 73 |
+
|
| 74 |
+
First install the SetFit library:
|
| 75 |
+
|
| 76 |
+
```bash
|
| 77 |
+
pip install setfit
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
Then you can load this model and run inference.
|
| 81 |
+
|
| 82 |
+
```python
|
| 83 |
+
from setfit import SetFitModel
|
| 84 |
+
|
| 85 |
+
# Download from the 🤗 Hub
|
| 86 |
+
model = SetFitModel.from_pretrained(<setfit_model_id>)
|
| 87 |
+
# Run inference
|
| 88 |
+
preds = model("Paris is in France")
|
| 89 |
+
```
|
| 90 |
|
| 91 |
### Framework Versions
|
| 92 |
- Python: 3.11.10
|