kaixkhazaki commited on
Commit
84e6543
·
verified ·
1 Parent(s): 4cc88aa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -2
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("zero-shot-classification", model="kaixkhazaki/turkish-zeroshot")
 
 
 
 
 
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?"