abinthomasonline
commited on
Commit
•
b04f998
1
Parent(s):
8c4802d
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 key, {
|
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 |
}
|