Commit
·
8fd4c53
1
Parent(s):
27ff097
null return trial
Browse files- pipeline.py +2 -0
pipeline.py
CHANGED
@@ -3,3 +3,5 @@ from transformers import AutoTokenizer,AutoModelForQuestionAnswering,QuestionAns
|
|
3 |
class PreTrainedPipeline(QuestionAnsweringPipeline):
|
4 |
def __init__(self,path=""):
|
5 |
return super().__init__(tokenizer=AutoTokenizer.from_pretrained(path),model=AutoModelForQuestionAnswering.from_pretrained(path),align_to_words=False)
|
|
|
|
|
|
3 |
class PreTrainedPipeline(QuestionAnsweringPipeline):
|
4 |
def __init__(self,path=""):
|
5 |
return super().__init__(tokenizer=AutoTokenizer.from_pretrained(path),model=AutoModelForQuestionAnswering.from_pretrained(path),align_to_words=False)
|
6 |
+
def __call__(self,*kwargs):
|
7 |
+
return {}
|