Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -11,7 +11,7 @@ class PreTrainedPipeline():
|
|
11 |
Initialize model
|
12 |
"""
|
13 |
self.bert_tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")
|
14 |
-
self.model = FoodyBertForSequenceClassification.from_pretrained("
|
15 |
#def __call__(self, inputs: str) -> List[float]:
|
16 |
def __call__(self, inputs: str) -> str:
|
17 |
"""
|
|
|
11 |
Initialize model
|
12 |
"""
|
13 |
self.bert_tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")
|
14 |
+
self.model = FoodyBertForSequenceClassification.from_pretrained(".")
|
15 |
#def __call__(self, inputs: str) -> List[float]:
|
16 |
def __call__(self, inputs: str) -> str:
|
17 |
"""
|