Fix bug
Browse files
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():
|