minnnnn commited on
Commit
b17befc
·
1 Parent(s): 4c6ced4

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +2 -3
test.py CHANGED
@@ -80,7 +80,7 @@ class imgdataset(datasets.GeneratorBasedBuilder):
80
  },
81
  ),
82
  ]
83
- def _download_image(self):
84
  print("3")
85
  if self.config.name == "train":
86
  train = open("/content/drive/MyDrive/train_dataset.csv", "r")
@@ -134,5 +134,4 @@ class imgdataset(datasets.GeneratorBasedBuilder):
134
  "file_name": row[1],
135
  "file_id": row[2]
136
  }
137
- key +=1
138
- _download_image(self.config.name)
 
80
  },
81
  ),
82
  ]
83
+ def _download_image(self, filepath, split):
84
  print("3")
85
  if self.config.name == "train":
86
  train = open("/content/drive/MyDrive/train_dataset.csv", "r")
 
134
  "file_name": row[1],
135
  "file_id": row[2]
136
  }
137
+ key +=1