Minor fix suggested in Recommenders repo
This commit is contained in:
Родитель
de569bc3b9
Коммит
802188e115
|
@ -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(
|
||||
|
|
Загрузка…
Ссылка в новой задаче