Blaxzter commited on
Commit
a38b233
1 Parent(s): 1569966

Update handler.py

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