Update README.md
Browse files
README.md
CHANGED
@@ -100,9 +100,9 @@ content = [{
|
|
100 |
for i, data in enumerate(dataset["train"], 1):
|
101 |
content = add_row(content, data, i, with_answer=True)
|
102 |
|
103 |
-
content.append({"type": "text","text": "Now you try it!",})
|
104 |
|
105 |
-
next_idx = i
|
106 |
|
107 |
### Add the test data
|
108 |
test_data = dataset["test"][0]
|
@@ -111,16 +111,15 @@ content_t = add_row(content.copy(), test_data, next_idx, with_answer=False)
|
|
111 |
### Get the answer from GPT-4
|
112 |
response = client.chat.completions.create(
|
113 |
model="gpt-4-vision-preview",
|
114 |
-
messages=[{"role": "user","content": content_t,}],
|
115 |
max_tokens=5,
|
116 |
)
|
117 |
gpt4_answer = response.choices[0].message.content
|
118 |
print(gpt4_answer)
|
119 |
-
|
120 |
```
|
121 |
|
122 |
## License
|
123 |
-
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 [email protected] to request the removal of the image from the dataset.
|
124 |
|
125 |
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.
|
126 |
|
|
|
100 |
for i, data in enumerate(dataset["train"], 1):
|
101 |
content = add_row(content, data, i, with_answer=True)
|
102 |
|
103 |
+
content.append({"type": "text", "text": "Now you try it!",})
|
104 |
|
105 |
+
next_idx = i + 1
|
106 |
|
107 |
### Add the test data
|
108 |
test_data = dataset["test"][0]
|
|
|
111 |
### Get the answer from GPT-4
|
112 |
response = client.chat.completions.create(
|
113 |
model="gpt-4-vision-preview",
|
114 |
+
messages=[{"role": "user", "content": content_t,}],
|
115 |
max_tokens=5,
|
116 |
)
|
117 |
gpt4_answer = response.choices[0].message.content
|
118 |
print(gpt4_answer)
|
|
|
119 |
```
|
120 |
|
121 |
## License
|
122 |
+
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:[email protected]">Haz Sameen Shahgir</a> to request the removal of the image from the dataset.
|
123 |
|
124 |
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.
|
125 |
|