small bug
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -36,7 +36,7 @@ class EndpointHandler():
|
|
| 36 |
def __init__(self, path="") -> None:
|
| 37 |
model = ORTModelForTokenClassification.from_pretrained(path)
|
| 38 |
tokenizer = AutoTokenizer.from_pretrained(path)
|
| 39 |
-
self.
|
| 40 |
framework='pt',
|
| 41 |
task='ner',
|
| 42 |
tokenizer=tokenizer,
|
|
|
|
| 36 |
def __init__(self, path="") -> None:
|
| 37 |
model = ORTModelForTokenClassification.from_pretrained(path)
|
| 38 |
tokenizer = AutoTokenizer.from_pretrained(path)
|
| 39 |
+
self.pipeline = MyTokenClassificationPipeline(model=model,
|
| 40 |
framework='pt',
|
| 41 |
task='ner',
|
| 42 |
tokenizer=tokenizer,
|