Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ processor = AutoProcessor.from_pretrained("microsoft/git-base-vqav2")
|
|
9 |
model = AutoModelForCausalLM.from_pretrained("microsoft/git-base-vqav2")
|
10 |
|
11 |
dataset=load_dataset("Multimodal-Fatima/OK-VQA_train")
|
12 |
-
|
13 |
features:['image', 'answers','question'],
|
14 |
num_rows: 200
|
15 |
})
|
@@ -18,7 +18,7 @@ Dataset({
|
|
18 |
'answers':Sequence(feature=Value(dtype='int64',id=None),length=-1,id=None),
|
19 |
'question':Value(dtype='string',id=None)}
|
20 |
|
21 |
-
|
22 |
features:['input_ids','attention_mask','pixel_values','pixel_mask','labels'],
|
23 |
num_rows:200
|
24 |
})
|
|
|
9 |
model = AutoModelForCausalLM.from_pretrained("microsoft/git-base-vqav2")
|
10 |
|
11 |
dataset=load_dataset("Multimodal-Fatima/OK-VQA_train")
|
12 |
+
dataset({
|
13 |
features:['image', 'answers','question'],
|
14 |
num_rows: 200
|
15 |
})
|
|
|
18 |
'answers':Sequence(feature=Value(dtype='int64',id=None),length=-1,id=None),
|
19 |
'question':Value(dtype='string',id=None)}
|
20 |
|
21 |
+
dataset({
|
22 |
features:['input_ids','attention_mask','pixel_values','pixel_mask','labels'],
|
23 |
num_rows:200
|
24 |
})
|