phamvi856 commited on
Commit
811ff7e
·
1 Parent(s): e70d65d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -66,7 +66,7 @@ def process_image(image):
66
  with torch.no_grad():
67
  outputs = model(input_ids=input_ids, bbox=bbox, attention_mask=attention_mask)
68
 
69
- predicted_labels = outputs.predictions.argmax(dim=2).squeeze().tolist()
70
 
71
  # Extract content from boxes
72
  extracted_content = {}
 
66
  with torch.no_grad():
67
  outputs = model(input_ids=input_ids, bbox=bbox, attention_mask=attention_mask)
68
 
69
+ predicted_labels = outputs.logits.argmax(dim=2).squeeze().tolist()
70
 
71
  # Extract content from boxes
72
  extracted_content = {}