Gagan Bhatia commited on
Commit
26d09e7
1 Parent(s): d8aa17a

Update model.py

Browse files
Files changed (1) hide show
  1. src/models/model.py +1 -0
src/models/model.py CHANGED
@@ -260,6 +260,7 @@ class Summarization:
260
  self.model = T5ForConditionalGeneration.from_pretrained(
261
  f"{model_name}", return_dict=True
262
  )
 
263
  self.tokenizer = MT5Tokenizer.from_pretrained(f"{model_name}")
264
 
265
  def train(
 
260
  self.model = T5ForConditionalGeneration.from_pretrained(
261
  f"{model_name}", return_dict=True
262
  )
263
+ elif model_type == "mt5":
264
  self.tokenizer = MT5Tokenizer.from_pretrained(f"{model_name}")
265
 
266
  def train(