Update soybean_dataset.py
Browse files- soybean_dataset.py +1 -1
soybean_dataset.py
CHANGED
@@ -122,7 +122,7 @@ class SoybeanDataset(datasets.GeneratorBasedBuilder):
|
|
122 |
]
|
123 |
|
124 |
|
125 |
-
|
126 |
# Initialize a ThreadPoolExecutor with the desired number of workers
|
127 |
self.executor = ThreadPoolExecutor(max_workers=max_workers)
|
128 |
|
|
|
122 |
]
|
123 |
|
124 |
|
125 |
+
def __init__(self, max_workers=5):
|
126 |
# Initialize a ThreadPoolExecutor with the desired number of workers
|
127 |
self.executor = ThreadPoolExecutor(max_workers=max_workers)
|
128 |
|