Unverified Commit d6ac8f4a authored by Shukant Pal's avatar Shukant Pal Committed by GitHub
Browse files

Initialize _tqdm_active with hf_hub_utils.are_progress_bars_disabled(… (#28717)

Initialize _tqdm_active with hf_hub_utils.are_progress_bars_disabled() to respect HF_HUB_DISABLE_PROGRESS_BARS

It seems like enable_progress_bar() and disable_progress_bar() sync up with huggingface_hub, but the initial value is always True. This changes will make sure the user's preference is respected implicity on initialization.
parent 3a46e30d
......@@ -51,7 +51,7 @@ log_levels = {
_default_log_level = logging.WARNING
_tqdm_active = True
_tqdm_active = not hf_hub_utils.are_progress_bars_disabled()
def _get_default_logging_level():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment