iakarshu commited on
Commit
abcbfde
·
1 Parent(s): 3e8ccdf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)