YassineB commited on
Commit
423dcb9
·
1 Parent(s): 983abe6

Fix requirements

Browse files
Files changed (1) hide show
  1. 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)