Merge pull request #86 from microsoft/abhiram-requests-fix
Minor fix suggested in Recommenders repo
This commit is contained in:
Коммит
b040c481eb
|
@ -35,7 +35,7 @@ def maybe_download(
|
|||
r = requests.get(url, stream=True)
|
||||
total_size = int(r.headers.get("content-length", 0))
|
||||
block_size = 1024
|
||||
num_iterables = math.ceil(total_size // block_size)
|
||||
num_iterables = math.ceil(total_size / block_size)
|
||||
|
||||
with open(filepath, "wb") as file:
|
||||
for data in tqdm(
|
||||
|
|
Загрузка…
Ссылка в новой задаче