SagarVelamuri commited on
Commit
8ea2f01
·
verified ·
1 Parent(s): 2151cd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -31,6 +31,7 @@ mdl_kwargs = dict(
31
  )
32
  if MODEL_REV: mdl_kwargs["revision"] = MODEL_REV
33
  model = AutoModelForSeq2SeqLM.from_pretrained(MODEL_ID, **mdl_kwargs).to(device)
 
34
  model.eval()
35
 
36
  ip = IndicProcessor(inference=True)
 
31
  )
32
  if MODEL_REV: mdl_kwargs["revision"] = MODEL_REV
33
  model = AutoModelForSeq2SeqLM.from_pretrained(MODEL_ID, **mdl_kwargs).to(device)
34
+ model.config.vocab_size = model.get_output_embeddings().weight.shape[0]
35
  model.eval()
36
 
37
  ip = IndicProcessor(inference=True)