jammygrams commited on
Commit
0c9e069
·
1 Parent(s): bbefeb7

update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -12,7 +12,7 @@ class EndpointHandler():
12
  path: str,
13
  ):
14
  # self.tagger = SequenceTagger.load(os.path.join(path,"pytorch_model.bin"))
15
- self.tokenizer = AutoTokenizer.from_file(os.path.join(path, "tokenizer.json"))
16
  self.model = AutoModelForSeq2SeqLM.from_pretrained(os.path.join(path, "pytorch_model.bin"))
17
  self.model.set_active_adapters(ADAPTER_NAME)
18
 
 
12
  path: str,
13
  ):
14
  # self.tagger = SequenceTagger.load(os.path.join(path,"pytorch_model.bin"))
15
+ self.tokenizer = AutoTokenizer.from_pretrained(os.path.join(path, "tokenizer.json"))
16
  self.model = AutoModelForSeq2SeqLM.from_pretrained(os.path.join(path, "pytorch_model.bin"))
17
  self.model.set_active_adapters(ADAPTER_NAME)
18