Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -77,10 +77,10 @@ from transformers import ViTFeatureExtractor, ViTModel
|
|
77 |
vit_feat_extract = ViTFeatureExtractor("google/vit-base-patch16-224-in21k")
|
78 |
|
79 |
def answer_question(image, question):
|
80 |
-
image.save('sample_img.
|
81 |
|
82 |
# Extracting features from the image
|
83 |
-
img, boxes, tokenized_words = create_features(image_path='sample_img.
|
84 |
tokenizer=tokenizer,
|
85 |
target_size=target_size,
|
86 |
max_seq_length=max_seq_len,
|
|
|
77 |
vit_feat_extract = ViTFeatureExtractor("google/vit-base-patch16-224-in21k")
|
78 |
|
79 |
def answer_question(image, question):
|
80 |
+
image.save('sample_img.png')
|
81 |
|
82 |
# Extracting features from the image
|
83 |
+
img, boxes, tokenized_words = create_features(image_path='sample_img.png',
|
84 |
tokenizer=tokenizer,
|
85 |
target_size=target_size,
|
86 |
max_seq_length=max_seq_len,
|