Skip to content

Commit

Permalink
fix tqdm lock (#6067)
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoestq authored Jul 25, 2023
1 parent 7e3ab9b commit f3da7a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/datasets/utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f3da7a5

Please sign in to comment.