phamvi856 commited on
Commit
e70d65d
·
1 Parent(s): 8f87ca9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ def process_image(image):
64
 
65
  # Predict token labels
66
  with torch.no_grad():
67
- outputs = model.predict_token_labels(input_ids, bbox, attention_mask=attention_mask)
68
 
69
  predicted_labels = outputs.predictions.argmax(dim=2).squeeze().tolist()
70
 
 
64
 
65
  # Predict token labels
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