Update soybean_dataset.py
Browse files- soybean_dataset.py +1 -1
soybean_dataset.py
CHANGED
@@ -134,7 +134,7 @@ class SoybeanDataset(datasets.GeneratorBasedBuilder):
|
|
134 |
return r
|
135 |
|
136 |
# Define the process_image function that uses the response from download
|
137 |
-
def process_image(image_url):
|
138 |
response = download(image_url)
|
139 |
img = Image.open(BytesIO(response.content))
|
140 |
return img
|
|
|
134 |
return r
|
135 |
|
136 |
# Define the process_image function that uses the response from download
|
137 |
+
def process_image(self, image_url):
|
138 |
response = download(image_url)
|
139 |
img = Image.open(BytesIO(response.content))
|
140 |
return img
|