Update instruct500k_vi.py
Browse files- instruct500k_vi.py +6 -5
instruct500k_vi.py
CHANGED
@@ -14,17 +14,18 @@ _DESCRIPTION = """
|
|
14 |
|
15 |
"""
|
16 |
_HOMEPAGE = "https://github.com/FPT-VVU/ViVidBot"
|
17 |
-
|
|
|
18 |
_URLS = {
|
19 |
-
"meta": "
|
20 |
-
"image": "
|
21 |
}
|
22 |
|
23 |
_CONFIGS = ["all"]
|
24 |
-
if fs.exists(
|
25 |
_CONFIGS.extend([
|
26 |
os.path.basename(file_name).split(".")[0]
|
27 |
-
for file_name in fs.listdir(
|
28 |
if file_name.endswith(".zip")
|
29 |
])
|
30 |
|
|
|
14 |
|
15 |
"""
|
16 |
_HOMEPAGE = "https://github.com/FPT-VVU/ViVidBot"
|
17 |
+
_REPO_ID = "datasets/Vividbot/instruct500k_vi"
|
18 |
+
_REPO_URL = f"https://huggingface.co/{_REPO_ID}/resolve/main"
|
19 |
_URLS = {
|
20 |
+
"meta": f"{_REPO_URL}/instruct500k_vi.json",
|
21 |
+
"image": f"{_REPO_URL}/images" + "{shard}.zip",
|
22 |
}
|
23 |
|
24 |
_CONFIGS = ["all"]
|
25 |
+
if fs.exists(_REPO_ID + "/images"):
|
26 |
_CONFIGS.extend([
|
27 |
os.path.basename(file_name).split(".")[0]
|
28 |
+
for file_name in fs.listdir(_REPO_ID + "/images", detail=False)
|
29 |
if file_name.endswith(".zip")
|
30 |
])
|
31 |
|