Gagan Bhatia commited on
Commit
744530a
1 Parent(s): 3744f32

Update model.py

Browse files
Files changed (1) hide show
  1. src/models/model.py +1 -0
src/models/model.py CHANGED
@@ -364,6 +364,7 @@ class Summarization:
364
  self.model = MT5ForConditionalGeneration.from_pretrained(
365
  f"{model_dir}", return_dict=True
366
  )
 
367
 
368
  if use_gpu:
369
  if torch.cuda.is_available():
 
364
  self.model = MT5ForConditionalGeneration.from_pretrained(
365
  f"{model_dir}", return_dict=True
366
  )
367
+ elif model_type == "byt5":
368
 
369
  if use_gpu:
370
  if torch.cuda.is_available():