Skip to content

Commit

Permalink
Attempt to solve downloading issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Old-Shatterhand committed Feb 20, 2025
1 parent 4dd7933 commit be49f25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions glycowork/glycan_data/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,7 @@ def download_model(file_id: str, # Google Drive file ID
response = requests.get(url, stream = True, timeout = 30)
if response.status_code == 200:
with open(local_path, 'wb') as f:
for chunk in response.iter_content(chunk_size = 8192):
f.write(chunk)
f.write(response.content)
print("Download completed.")
else:
print(f"Download failed. Status code: {response.status_code}")
Expand Down

0 comments on commit be49f25

Please sign in to comment.