Spaces:
Running
Running
Update interfaces/main_pipeline.py
Browse files
interfaces/main_pipeline.py
CHANGED
@@ -7,7 +7,7 @@ from gliclass import GLiClassModel, ZeroShotClassificationPipeline
|
|
7 |
|
8 |
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
|
9 |
|
10 |
-
model_path = "knowledgator/gliclass-
|
11 |
model = GLiClassModel.from_pretrained(model_path)
|
12 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
13 |
|
|
|
7 |
|
8 |
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
|
9 |
|
10 |
+
model_path = "knowledgator/gliclass-base-v1.0-lw"
|
11 |
model = GLiClassModel.from_pretrained(model_path)
|
12 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
13 |
|