Fix requirements
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline, AutoTokenizer
|
|
4 |
|
5 |
|
6 |
class EndpointHandler():
|
7 |
-
def __init__(self):
|
8 |
# load the optimized model
|
9 |
path = "optimum/roberta-base-squad2"
|
10 |
model = ORTModelForSequenceClassification.from_pretrained(path)
|
|
|
4 |
|
5 |
|
6 |
class EndpointHandler():
|
7 |
+
def __init__(self, path=""):
|
8 |
# load the optimized model
|
9 |
path = "optimum/roberta-base-squad2"
|
10 |
model = ORTModelForSequenceClassification.from_pretrained(path)
|