nastyboget commited on
Commit
93a7d40
1 Parent(s): cc2c6eb

Update gan_cyrillic.py

Browse files
Files changed (1) hide show
  1. gan_cyrillic.py +4 -4
gan_cyrillic.py CHANGED
@@ -13,9 +13,9 @@ class GanCyrillic(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 GanCyrillic(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