nielsr HF staff commited on
Commit
32a43f7
1 Parent(s): 3381383
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -14,7 +14,6 @@ model = ViltForImagesAndTextClassification.from_pretrained("dandelin/vilt-b32-fi
14
  def predict(image1, image2, text):
15
  # prepare inputs
16
  encoding = processor([image1, image2], text, return_tensors="pt")
17
- pixel_values = torch.stack([encoding_1.pixel_values, encoding_2.pixel_values], dim=1)
18
 
19
  # forward pass
20
  with torch.no_grad():
 
14
  def predict(image1, image2, text):
15
  # prepare inputs
16
  encoding = processor([image1, image2], text, return_tensors="pt")
 
17
 
18
  # forward pass
19
  with torch.no_grad():