Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
28b47e60
"torchvision/vscode:/vscode.git/clone" did not exist on "af225a8ad529a2a337bca2faef6752199f637d38"
Commit
28b47e60
authored
Jun 29, 2023
by
Bruce MacDonald
Browse files
accurate loading bar for resume download
parent
61e39bf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ollama/model.py
ollama/model.py
+1
-1
No files found.
ollama/model.py
View file @
28b47e60
...
...
@@ -90,7 +90,7 @@ def download_file(download_url, models_home, location, file_size):
response
=
requests
.
get
(
download_url
,
headers
=
header
,
stream
=
True
)
response
.
raise_for_status
()
total_size
=
int
(
response
.
headers
.
get
(
'content-length'
,
0
))
total_size
=
int
(
response
.
headers
.
get
(
'content-length'
,
0
))
+
first_byte
with
open
(
local_filename
,
'ab'
if
first_byte
else
'wb'
)
as
file
,
tqdm
(
total
=
total_size
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment