Datasets:
remove json
Browse files- Teyvat.py +2 -2
- data/metadata.json → metadata.json +0 -0
Teyvat.py
CHANGED
@@ -30,7 +30,7 @@ _URLS = {"data" :hf_hub_url(
|
|
30 |
),
|
31 |
"metadata" :hf_hub_url(
|
32 |
"datasets/Fazzie/Teyvat",
|
33 |
-
filename="
|
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
|