kaixkhazaki
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -32,9 +32,13 @@ It achieves the following results on the evaluation set:
|
|
32 |
|
33 |
```python
|
34 |
# Use a pipeline as a high-level helper
|
35 |
-
from transformers import pipeline
|
36 |
|
37 |
-
pipe = pipeline(
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
#Enter your text and possible candidates of classification
|
40 |
sequence = "Bu laptopun pil ömrü ne kadar dayanıyor?"
|
|
|
32 |
|
33 |
```python
|
34 |
# Use a pipeline as a high-level helper
|
|
|
35 |
|
36 |
+
pipe = pipeline(
|
37 |
+
"zero-shot-classification",
|
38 |
+
model="kaixkhazaki/turkish-zeroshot-distilbert",
|
39 |
+
tokenizer="kaixkhazaki/turkish-zeroshot-distilbert",
|
40 |
+
device=0 if torch.cuda.is_available() else -1 # Use GPU if available
|
41 |
+
)
|
42 |
|
43 |
#Enter your text and possible candidates of classification
|
44 |
sequence = "Bu laptopun pil ömrü ne kadar dayanıyor?"
|