We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f234fce commit ed2b406Copy full SHA for ed2b406
src/datasets/utils/file_utils.py
@@ -327,8 +327,12 @@ def stack_multiprocessing_download_progress_bars():
327
328
class TqdmCallback(fsspec.callbacks.TqdmCallback):
329
def __init__(self, tqdm_kwargs=None, *args, **kwargs):
330
- super().__init__(tqdm_kwargs, *args, **kwargs)
331
- self._tqdm = _tqdm # replace tqdm.tqdm by datasets.tqdm.tqdm
+ if config.FSSPEC_VERSION < version.parse("2024.2.0"):
+ super().__init__(tqdm_kwargs, *args, **kwargs)
332
+ self._tqdm = _tqdm # replace tqdm module by datasets.utils.tqdm module
333
+ else:
334
+ kwargs["tqdm_cls"] = _tqdm.tqdm
335
336
337
338
def fsspec_get(url, temp_file, storage_options=None, desc=None):
0 commit comments