From f3da7a5a7d0d0415476ecebb0458e7c60df24445 Mon Sep 17 00:00:00 2001 From: Quentin Lhoest <42851186+lhoestq@users.noreply.github.com> Date: Tue, 25 Jul 2023 11:54:11 +0200 Subject: [PATCH] fix tqdm lock (#6067) --- src/datasets/utils/logging.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/datasets/utils/logging.py b/src/datasets/utils/logging.py index 78978d2ee28..a2c3becd741 100644 --- a/src/datasets/utils/logging.py +++ b/src/datasets/utils/logging.py @@ -202,6 +202,8 @@ def __exit__(self, type_, value, traceback): class _tqdm_cls: + _lock = None + def __call__(self, *args, disable=False, **kwargs): if _tqdm_active and not disable: return tqdm_lib.tqdm(*args, **kwargs)