Tonic commited on
Commit
56b7947
Β·
unverified Β·
1 Parent(s): 00ee90b

initial commit

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ model.config.pad_token_id = tokenizer.eos_token_id
13
 
14
  @spaces.GPU
15
  def process_image(image, task, ocr_type=None, ocr_box=None, ocr_color=None, render=False):
16
- # Create attention mask
17
  attention_mask = torch.ones((1, model.config.max_position_embeddings), dtype=torch.long, device=model.device)
18
 
19
  if task == "Plain Text OCR":
 
13
 
14
  @spaces.GPU
15
  def process_image(image, task, ocr_type=None, ocr_box=None, ocr_color=None, render=False):
16
+
17
  attention_mask = torch.ones((1, model.config.max_position_embeddings), dtype=torch.long, device=model.device)
18
 
19
  if task == "Plain Text OCR":