Skip to content

Commit

Permalink
ajuste chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
royopa committed Dec 30, 2020
1 parent 77d896d commit c61e893
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils.py
Expand Up @@ -55,8 +55,9 @@ def download(url, params, file_name):
if response.status_code != 200:
'Nenhum arquivo encontrado nessa url'
return False

with open(file_name, "wb") as handle:
for data in tqdm(response.iter_content()):
for data in response.iter_content(chunk_size=8192):
handle.write(data)
handle.close()

Expand Down

0 comments on commit c61e893

Please sign in to comment.