Update README.md
Browse files
README.md
CHANGED
@@ -34,8 +34,8 @@ Than you need to initialize a model and a pipeline:
|
|
34 |
from gliclass import GLiClassModel, ZeroShotClassificationPipeline
|
35 |
from transformers import AutoTokenizer
|
36 |
|
37 |
-
model = GLiClassModel.from_pretrained("knowledgator/gliclass-small-v1")
|
38 |
-
tokenizer = AutoTokenizer.from_pretrained("knowledgator/gliclass-small-v1")
|
39 |
|
40 |
pipeline = ZeroShotClassificationPipeline(model, tokenizer, classification_type='multi-label', device='cuda:0')
|
41 |
|
|
|
34 |
from gliclass import GLiClassModel, ZeroShotClassificationPipeline
|
35 |
from transformers import AutoTokenizer
|
36 |
|
37 |
+
model = GLiClassModel.from_pretrained("knowledgator/gliclass-small-v1.0")
|
38 |
+
tokenizer = AutoTokenizer.from_pretrained("knowledgator/gliclass-small-v1.0")
|
39 |
|
40 |
pipeline = ZeroShotClassificationPipeline(model, tokenizer, classification_type='multi-label', device='cuda:0')
|
41 |
|