abhik1505040
commited on
Commit
•
e7f3863
1
Parent(s):
916b79b
Update README.md
Browse files
README.md
CHANGED
@@ -81,7 +81,7 @@ def add_row(content, data, i, with_answer=False):
|
|
81 |
content.append({"type": "text", "text": "Answer {}: ".format(i), })
|
82 |
return content
|
83 |
|
84 |
-
dataset = load_dataset("csebuetnlp/illusionVQA-
|
85 |
client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
|
86 |
|
87 |
content = [{
|
@@ -93,9 +93,9 @@ content = [{
|
|
93 |
for i, data in enumerate(dataset["train"], 1):
|
94 |
content = add_row(content, data, i, with_answer=True)
|
95 |
|
96 |
-
content.append({"type": "text","text": "Now you try it!",})
|
97 |
|
98 |
-
next_idx = i
|
99 |
|
100 |
### Add the test data
|
101 |
test_data = dataset["test"][0]
|
@@ -109,11 +109,10 @@ response = client.chat.completions.create(
|
|
109 |
)
|
110 |
gpt4_answer = response.choices[0].message.content
|
111 |
print(gpt4_answer)
|
112 |
-
|
113 |
```
|
114 |
|
115 |
## License
|
116 |
-
This dataset is made available for non-commercial research purposes only under the [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0)](https://creativecommons.org/licenses/by-nc-sa/4.0/). The dataset may not be used for training models. The dataset contains images collected from the internet. While permission has been obtained from some of the images' creators, permission has not yet been received from all creators. If you believe any image in this dataset is used without proper permission and you are the copyright holder, please email sameen2080@gmail.com to request the removal of the image from the dataset.
|
117 |
|
118 |
The dataset creator makes no representations or warranties regarding the copyright status of the images in the dataset. The dataset creator shall not be held liable for any unauthorized use of copyrighted material that may be contained in the dataset.
|
119 |
|
|
|
81 |
content.append({"type": "text", "text": "Answer {}: ".format(i), })
|
82 |
return content
|
83 |
|
84 |
+
dataset = load_dataset("csebuetnlp/illusionVQA-Comprehension")
|
85 |
client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
|
86 |
|
87 |
content = [{
|
|
|
93 |
for i, data in enumerate(dataset["train"], 1):
|
94 |
content = add_row(content, data, i, with_answer=True)
|
95 |
|
96 |
+
content.append({"type": "text", "text": "Now you try it!",})
|
97 |
|
98 |
+
next_idx = i + 1
|
99 |
|
100 |
### Add the test data
|
101 |
test_data = dataset["test"][0]
|
|
|
109 |
)
|
110 |
gpt4_answer = response.choices[0].message.content
|
111 |
print(gpt4_answer)
|
|
|
112 |
```
|
113 |
|
114 |
## License
|
115 |
+
This dataset is made available for non-commercial research purposes only under the [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0)](https://creativecommons.org/licenses/by-nc-sa/4.0/). The dataset may not be used for training models. The dataset contains images collected from the internet. While permission has been obtained from some of the images' creators, permission has not yet been received from all creators. If you believe any image in this dataset is used without proper permission and you are the copyright holder, please email <a href="mailto:sameen2080@gmail.com">Haz Sameen Shahgir</a> to request the removal of the image from the dataset.
|
116 |
|
117 |
The dataset creator makes no representations or warranties regarding the copyright status of the images in the dataset. The dataset creator shall not be held liable for any unauthorized use of copyrighted material that may be contained in the dataset.
|
118 |
|