Update README.md
Browse files
README.md
CHANGED
|
@@ -148,11 +148,16 @@ The dataset can be loaded using the Hugging Face `datasets` library.
|
|
| 148 |
```python
|
| 149 |
from huggingface_hub import hf_hub_download
|
| 150 |
import json
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
# Download the raw JSON file from the dataset repo
|
| 152 |
json_path = hf_hub_download(
|
| 153 |
-
repo_id="MaybeMessi/MisVisBench",
|
| 154 |
-
repo_type="dataset",
|
| 155 |
-
filename="data.json"
|
|
|
|
| 156 |
)
|
| 157 |
# Load the JSON
|
| 158 |
with open(json_path, "r", encoding="utf-8") as f:
|
|
|
|
| 148 |
```python
|
| 149 |
from huggingface_hub import hf_hub_download
|
| 150 |
import json
|
| 151 |
+
|
| 152 |
+
# Replace with your Hugging Face token
|
| 153 |
+
HF_TOKEN = "hf_xxxxxxxxxxxxxxxxx"
|
| 154 |
+
|
| 155 |
# Download the raw JSON file from the dataset repo
|
| 156 |
json_path = hf_hub_download(
|
| 157 |
+
repo_id = "MaybeMessi/MisVisBench",
|
| 158 |
+
repo_type = "dataset",
|
| 159 |
+
filename = "data.json",
|
| 160 |
+
token = HF_TOKEN
|
| 161 |
)
|
| 162 |
# Load the JSON
|
| 163 |
with open(json_path, "r", encoding="utf-8") as f:
|