Bashir Rastegarpanah commited on
Commit
c710467
1 Parent(s): 9868e73

add custom handler

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -11,7 +11,7 @@ class EndpointHandler:
11
  # pseudo:
12
  # self.model= load_model(path)
13
  self.model = model
14
- self.tokenizer = AutoTokenizer.from_pretrained("roberta-large", padding_side=padding_side)
15
 
16
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
17
 
 
11
  # pseudo:
12
  # self.model= load_model(path)
13
  self.model = model
14
+ self.tokenizer = AutoTokenizer.from_pretrained("roberta-large", padding_side='right')
15
 
16
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
17