Update app.py
Browse files
app.py
CHANGED
@@ -11,16 +11,16 @@ model = AutoModelForCausalLM.from_pretrained("microsoft/git-base-vqav2")
|
|
11 |
dataset=load_dataset("Multimodal-Fatima/OK-VQA_train")
|
12 |
Dataset({
|
13 |
features:['image', 'answers','question'],
|
14 |
-
num_rows:
|
15 |
})
|
16 |
|
17 |
{'image':Image(decode=True,id=None),
|
18 |
-
'answers':Sequence(feature=Value(dtype='int64',
|
19 |
'question':Value(dtype='string',id=None)}
|
20 |
|
21 |
Dataset({
|
22 |
features:['input_ids','attention_mask','pixel_values','pixel_mask','labels'],
|
23 |
-
num_rows:
|
24 |
})
|
25 |
|
26 |
file_path = hf_hub_download(repo_id=Dataset, repo_type="dataset")
|
|
|
11 |
dataset=load_dataset("Multimodal-Fatima/OK-VQA_train")
|
12 |
Dataset({
|
13 |
features:['image', 'answers','question'],
|
14 |
+
num_rows: 200
|
15 |
})
|
16 |
|
17 |
{'image':Image(decode=True,id=None),
|
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 |
})
|
25 |
|
26 |
file_path = hf_hub_download(repo_id=Dataset, repo_type="dataset")
|