nastyboget commited on
Commit
2308814
1 Parent(s): d7054ac

Update gan_hkr.py

Browse files
Files changed (1) hide show
  1. gan_hkr.py +4 -4
gan_hkr.py CHANGED
@@ -13,9 +13,9 @@ class GanHKR(datasets.GeneratorBasedBuilder):
13
  features=datasets.Features(
14
  {
15
  "image": datasets.Image(),
 
16
  "path": datasets.Value("string"),
17
- "name": datasets.Value("string"),
18
- "text": datasets.Value("string")
19
  }
20
  )
21
  )
@@ -43,8 +43,8 @@ class GanHKR(datasets.GeneratorBasedBuilder):
43
 
44
  example = {
45
  "image": image_path,
 
46
  "path": image_path,
47
- "name": image_name,
48
- "text": df["text"][image_name]
49
  }
50
  yield image_name, example
 
13
  features=datasets.Features(
14
  {
15
  "image": datasets.Image(),
16
+ "text": datasets.Value("string"),
17
  "path": datasets.Value("string"),
18
+ "name": datasets.Value("string")
 
19
  }
20
  )
21
  )
 
43
 
44
  example = {
45
  "image": image_path,
46
+ "text": df["text"][image_name],
47
  "path": image_path,
48
+ "name": image_name
 
49
  }
50
  yield image_name, example