mirror of
https://github.com/modelscope/modelscope.git
synced 2026-07-13 22:08:46 +02:00
@@ -471,7 +471,7 @@ def http_get_model_file(
|
||||
with open(temp_file_path, 'rb') as f:
|
||||
partial_length = f.seek(0, io.SEEK_END)
|
||||
progress.update(partial_length)
|
||||
if partial_length >= file_size:
|
||||
if partial_length >= file_size > 0:
|
||||
break
|
||||
# closed range[], from 0.
|
||||
get_headers['Range'] = 'bytes=%s-%s' % (partial_length,
|
||||
|
||||
Reference in New Issue
Block a user