Spaces:
Paused
Paused
Update app.py
Browse files
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', '
|
132 |
for item in self.dataset:
|
133 |
-
writer.writerow([item['image'], item['
|
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
|