wintercoming6 commited on
Commit
12e2210
1 Parent(s): 892c9ae

Update artwork_for_sdxl.py

Browse files
Files changed (1) hide show
  1. artwork_for_sdxl.py +7 -5
artwork_for_sdxl.py CHANGED
@@ -79,21 +79,23 @@ class Artwork(datasets.GeneratorBasedBuilder):
79
  for _, row in files.iterrows():
80
  print(cnt)
81
  cnt+=1
 
 
 
 
 
82
  print(row)
83
  print(row.prompt)
84
  print(type(row.prompt))
85
  print(row.file_name)
86
  print(type(row.file_name))
87
  # print current os directory
88
- p=row.prompt
89
- n=row.file_name
90
 
91
  print(os.getcwd())
92
  img = self.download_image(_image_url+ row.file_name)
93
  print(img)
94
- examples = {}
95
- examples["image_data"] = n
96
- examples["prompt"] = p
97
  # examples_json = json.dumps(examples)
98
  print(examples)
99
  yield examples
 
79
  for _, row in files.iterrows():
80
  print(cnt)
81
  cnt+=1
82
+ examples = {}
83
+ p=row.prompt
84
+ n=row.file_name
85
+ examples["image_data"] = n
86
+ examples["prompt"] = p
87
  print(row)
88
  print(row.prompt)
89
  print(type(row.prompt))
90
  print(row.file_name)
91
  print(type(row.file_name))
92
  # print current os directory
93
+
 
94
 
95
  print(os.getcwd())
96
  img = self.download_image(_image_url+ row.file_name)
97
  print(img)
98
+
 
 
99
  # examples_json = json.dumps(examples)
100
  print(examples)
101
  yield examples