KoichiYasuoka
commited on
Commit
·
32857c2
1
Parent(s):
8fd4c53
remove pipeline.py
Browse files- pipeline.py +0 -7
pipeline.py
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
from transformers import AutoTokenizer,AutoModelForQuestionAnswering,QuestionAnsweringPipeline
|
2 |
-
|
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 {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|