Skip to content

Commit

Permalink
Update src/datasets/utils/file_utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Quentin Lhoest <[email protected]>
  • Loading branch information
dwyatte and lhoestq committed Mar 10, 2023
1 parent 341bda5 commit 74c0c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datasets/utils/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def fsspec_get(url, temp_file, timeout=10.0, desc=None):
callback = fsspec.callbacks.TqdmCallback(
tqdm_kwargs={
"desc": desc or "Downloading",
"disable": logging.is_progress_bar_enabled(),
"disable": not logging.is_progress_bar_enabled(),
}
)
fs.get_file(paths[0], temp_file.name, callback=callback)
Expand Down

0 comments on commit 74c0c45

Please sign in to comment.