Fazzie commited on
Commit
4242a37
1 Parent(s): e30f551

remove json

Browse files
Teyvat.py CHANGED
@@ -30,7 +30,7 @@ _URLS = {"data" :hf_hub_url(
30
  ),
31
  "metadata" :hf_hub_url(
32
  "datasets/Fazzie/Teyvat",
33
- filename="data/metadata.json",
34
  )
35
  }
36
 
@@ -100,7 +100,7 @@ class Teyvat(datasets.GeneratorBasedBuilder):
100
  data = load(open(meta_data_path, "r", encoding="utf8"))
101
 
102
  for image in data:
103
- image_path = image["file_name"]
104
  text = image["text"]
105
 
106
 
 
30
  ),
31
  "metadata" :hf_hub_url(
32
  "datasets/Fazzie/Teyvat",
33
+ filename="metadata.json",
34
  )
35
  }
36
 
 
100
  data = load(open(meta_data_path, "r", encoding="utf8"))
101
 
102
  for image in data:
103
+ image_path = "data/" + image["file_name"]
104
  text = image["text"]
105
 
106
 
data/metadata.json → metadata.json RENAMED
File without changes