abinthomasonline
commited on
Commit
•
6c1272e
1
Parent(s):
b04f998
Update stained-glass.py
Browse files- stained-glass.py +1 -1
stained-glass.py
CHANGED
@@ -46,7 +46,7 @@ class StainedGlass(datasets.GeneratorBasedBuilder):
|
|
46 |
captions = {row[0]: row[1].replace('"', '') for _, row in df.iterrows()}
|
47 |
for adjective in _ADJECTIVES:
|
48 |
for key, image_path in image_paths.items():
|
49 |
-
yield
|
50 |
"image": image_path,
|
51 |
"caption": captions[key].format(token='<token>', adjective=adjective),
|
52 |
}
|
|
|
46 |
captions = {row[0]: row[1].replace('"', '') for _, row in df.iterrows()}
|
47 |
for adjective in _ADJECTIVES:
|
48 |
for key, image_path in image_paths.items():
|
49 |
+
yield key + adjective, {
|
50 |
"image": image_path,
|
51 |
"caption": captions[key].format(token='<token>', adjective=adjective),
|
52 |
}
|