Spaces:
Runtime error
Runtime error
using a lighter zero-shot-classification model
Browse files
Models.py
CHANGED
|
@@ -23,8 +23,8 @@ class Models:
|
|
| 23 |
self.ner_dates = pipeline('ner', model=model, tokenizer=tokenizer, aggregation_strategy="simple")
|
| 24 |
|
| 25 |
#Zero Shot Classification
|
| 26 |
-
self.zero_shot_classifier = pipeline("zero-shot-classification", model='facebook/bart-large-mnli')
|
| 27 |
-
|
| 28 |
|
| 29 |
# Ner
|
| 30 |
tokenizer = AutoTokenizer.from_pretrained("dslim/bert-base-NER")
|
|
|
|
| 23 |
self.ner_dates = pipeline('ner', model=model, tokenizer=tokenizer, aggregation_strategy="simple")
|
| 24 |
|
| 25 |
#Zero Shot Classification
|
| 26 |
+
# self.zero_shot_classifier = pipeline("zero-shot-classification", model='facebook/bart-large-mnli')
|
| 27 |
+
self.zero_shot_classifier = pipeline("zero-shot-classification", model='valhalla/distilbart-mnli-12-6')
|
| 28 |
|
| 29 |
# Ner
|
| 30 |
tokenizer = AutoTokenizer.from_pretrained("dslim/bert-base-NER")
|