Commit ·
01b32cf
1
Parent(s): fdcadae
Update pipeline.py
Browse files- pipeline.py +2 -1
pipeline.py
CHANGED
|
@@ -159,7 +159,8 @@ class PairRelInstance:
|
|
| 159 |
|
| 160 |
class PreTrainedPipeline():
|
| 161 |
def __init__(self, path):
|
| 162 |
-
|
|
|
|
| 163 |
|
| 164 |
def __call__(self, inputs)-> Dict[str, str]:
|
| 165 |
|
|
|
|
| 159 |
|
| 160 |
class PreTrainedPipeline():
|
| 161 |
def __init__(self, path):
|
| 162 |
+
config = BertConfig.from_pretrained(TRAINED_WEIGHTS)
|
| 163 |
+
self.model = BertModel.from_pretrained(TRAINED_WEIGHTS, config=config)
|
| 164 |
|
| 165 |
def __call__(self, inputs)-> Dict[str, str]:
|
| 166 |
|