Lahiru Menikdiwela commited on
Commit
16ecc46
1 Parent(s): 32e6acc

revert changes

Browse files
Files changed (1) hide show
  1. model.py +2 -2
model.py CHANGED
@@ -19,11 +19,11 @@ def get_local_model(model_name_or_path:str)->pipeline:
19
 
20
  #print(f"Model is running on {device}")
21
 
22
- tokenizer = LEDTokenizer.from_pretrained( #AutoTokenizer.from_pretrained( news changes to support led
23
  model_name_or_path,
24
  token = hf_token
25
  )
26
- model = LEDForConditionalGeneration.from_pretrained( #AutoModelForSeq2SeqLM.from_pretrained( new changes to support led
27
  model_name_or_path,
28
  torch_dtype=torch.float32,
29
  token = hf_token
 
19
 
20
  #print(f"Model is running on {device}")
21
 
22
+ tokenizer = AutoTokenizer.from_pretrained(
23
  model_name_or_path,
24
  token = hf_token
25
  )
26
+ model = AutoModelForSeq2SeqLM.from_pretrained(
27
  model_name_or_path,
28
  torch_dtype=torch.float32,
29
  token = hf_token