wintercoming6 commited on
Commit
d2f28c9
1 Parent(s): 9e68b37

Update artwork_for_sdxl.py

Browse files
Files changed (1) hide show
  1. artwork_for_sdxl.py +4 -2
artwork_for_sdxl.py CHANGED
@@ -22,6 +22,7 @@ from PIL import Image
22
  import requests
23
  import io
24
  import tfds
 
25
 
26
 
27
 
@@ -93,5 +94,6 @@ class Artwork(datasets.GeneratorBasedBuilder):
93
  examples = {}
94
  examples["image_data"] = img
95
  examples["prompt"] = p
96
- print(examples)
97
- yield examples
 
 
22
  import requests
23
  import io
24
  import tfds
25
+ import json
26
 
27
 
28
 
 
94
  examples = {}
95
  examples["image_data"] = img
96
  examples["prompt"] = p
97
+ examples_json = json.dumps(examples)
98
+ print(examples_json)
99
+ yield examples_json