Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -110,6 +110,7 @@ def answer_question(image, question):
|
|
110 |
tokenized_words = tokenized_words.unsqueeze(0)
|
111 |
question = question.unsqueeze(0)
|
112 |
|
|
|
113 |
img = vit_feat_extract(img, return_tensors = 'pt')['pixel_values']
|
114 |
if int(len(img.shape)) == 3:
|
115 |
img = img.unsqueeze(0)
|
|
|
110 |
tokenized_words = tokenized_words.unsqueeze(0)
|
111 |
question = question.unsqueeze(0)
|
112 |
|
113 |
+
print("Shape of Image is:", img.shape)
|
114 |
img = vit_feat_extract(img, return_tensors = 'pt')['pixel_values']
|
115 |
if int(len(img.shape)) == 3:
|
116 |
img = img.unsqueeze(0)
|