Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Update flash/core/data/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
  • Loading branch information
2 people authored and Borda committed Mar 10, 2021
1 parent 288cc6e commit 5003f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flash/core/data/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def download_file(url: str, path: str, verbose: bool = False) -> None:
chunk_size = 1024
num_bars = int(file_size / chunk_size)
if verbose:
logging.info(f'file size: {dict(file_size=file_size)} \n # bars: {dict(num_bars=num_bars)}')
logging.info(f'file size: {file_size}\n# bars: {num_bars}')
with open(local_filename, 'wb') as fp:
for chunk in tq(
r.iter_content(chunk_size=chunk_size),
Expand Down

0 comments on commit 5003f7d

Please sign in to comment.