throaway2854 commited on
Commit
d6af656
·
verified ·
1 Parent(s): a0b54ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -128,9 +128,9 @@ class DatasetBuilder:
128
  dataset_file_path = os.path.join(DATA_DIR, dataset_file)
129
  with open(dataset_file_path, 'w', newline='') as csvfile:
130
  writer = csv.writer(csvfile)
131
- writer.writerow(['image', 'text'])
132
  for item in self.dataset:
133
- writer.writerow([item['image'], item['text']])
134
  zipf.write(dataset_file_path, os.path.basename(dataset_file_path))
135
 
136
  # Add all images
 
128
  dataset_file_path = os.path.join(DATA_DIR, dataset_file)
129
  with open(dataset_file_path, 'w', newline='') as csvfile:
130
  writer = csv.writer(csvfile)
131
+ writer.writerow(['image', 'tags'])
132
  for item in self.dataset:
133
+ writer.writerow([item['image'], item['tags']])
134
  zipf.write(dataset_file_path, os.path.basename(dataset_file_path))
135
 
136
  # Add all images