ragavsachdeva commited on
Commit
5deac87
1 Parent(s): fb1caa5

Update modelling_magiv2.py

Browse files
Files changed (1) hide show
  1. modelling_magiv2.py +1 -1
modelling_magiv2.py CHANGED
@@ -413,7 +413,7 @@ class Magiv2Model(PreTrainedModel):
413
 
414
  return crop_embeddings_for_batch
415
 
416
- def predict_ocr(self, images, crop_bboxes, move_to_device_fn=None, use_tqdm=False, batch_size=32, max_new_tokens=512):
417
  assert not self.config.disable_ocr
418
  move_to_device_fn = self.move_to_device if move_to_device_fn is None else move_to_device_fn
419
 
 
413
 
414
  return crop_embeddings_for_batch
415
 
416
+ def predict_ocr(self, images, crop_bboxes, move_to_device_fn=None, use_tqdm=False, batch_size=32, max_new_tokens=64):
417
  assert not self.config.disable_ocr
418
  move_to_device_fn = self.move_to_device if move_to_device_fn is None else move_to_device_fn
419