canovich commited on
Commit
190898f
·
1 Parent(s): e9b6e3f

Upload code/ with huggingface_hub

Browse files
Files changed (1) hide show
  1. code/inference.py +1 -1
code/inference.py CHANGED
@@ -278,7 +278,7 @@ JSON_CONTENT_TYPE = 'application/json'
278
  # loads the model into memory from disk and returns it
279
  def model_fn(model_dir):
280
  # Load model from HuggingFace Hub
281
- tokenizer = T5TokenizerFast(model_dir, extra_ids=0)
282
  model = AutoModelForSeq2SeqLM.from_pretrained(model_dir)
283
  return model, tokenizer
284
 
 
278
  # loads the model into memory from disk and returns it
279
  def model_fn(model_dir):
280
  # Load model from HuggingFace Hub
281
+ tokenizer = T5TokenizerFast.from_pretrained(model_dir, extra_ids=0)
282
  model = AutoModelForSeq2SeqLM.from_pretrained(model_dir)
283
  return model, tokenizer
284