Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -5,7 +5,7 @@ from transformers import BertModel, BertTokenizerFast
|
|
5 |
|
6 |
|
7 |
class EndpointHandler():
|
8 |
-
def __init__(self, path_to_model: str):
|
9 |
# Preload all the elements you are going to need at inference.
|
10 |
# pseudo:
|
11 |
self.tokenizer = BertTokenizerFast.from_pretrained(path_to_model)
|
|
|
5 |
|
6 |
|
7 |
class EndpointHandler():
|
8 |
+
def __init__(self, path_to_model: str = '.'):
|
9 |
# Preload all the elements you are going to need at inference.
|
10 |
# pseudo:
|
11 |
self.tokenizer = BertTokenizerFast.from_pretrained(path_to_model)
|