Spaces:
Sleeping
Sleeping
Update src/modernbert/classifier.py
Browse files
src/modernbert/classifier.py
CHANGED
|
@@ -15,6 +15,7 @@ classifier = pipeline(
|
|
| 15 |
"zero-shot-classification",
|
| 16 |
model="MoritzLaurer/ModernBERT-large-zeroshot-v2.0",
|
| 17 |
torch_dtype=torch.bfloat16,
|
|
|
|
| 18 |
)
|
| 19 |
|
| 20 |
|
|
|
|
| 15 |
"zero-shot-classification",
|
| 16 |
model="MoritzLaurer/ModernBERT-large-zeroshot-v2.0",
|
| 17 |
torch_dtype=torch.bfloat16,
|
| 18 |
+
device="cpu"
|
| 19 |
)
|
| 20 |
|
| 21 |
|