Duy1332002 commited on
Commit
83cdd89
·
verified ·
1 Parent(s): d8e4903

Update instruct500k_vi.py

Browse files
Files changed (1) hide show
  1. 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
- _REPO_URL = "https://huggingface.co/datasets/Vividbot/instruct500k_vi/tree/main"
 
18
  _URLS = {
19
- "meta": "https://huggingface.co/datasets/Vividbot/instruct500k_vi/blob/main/instruct500k_vi.json",
20
- "image": "https://huggingface.co/datasets/Vividbot/instruct500k_vi/tree/main/images" + "{shard}.zip",
21
  }
22
 
23
  _CONFIGS = ["all"]
24
- if fs.exists(_REPO_URL + "/images"):
25
  _CONFIGS.extend([
26
  os.path.basename(file_name).split(".")[0]
27
- for file_name in fs.listdir(_REPO_URL + "/images", detail=False)
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