Skip to content

Instantly share code, notes, and snippets.

@shellkore
Created December 23, 2019 07:01
Show Gist options
  • Save shellkore/2f2befb9b0f3a09793fc1169affff891 to your computer and use it in GitHub Desktop.
Save shellkore/2f2befb9b0f3a09793fc1169affff891 to your computer and use it in GitHub Desktop.
import requests
file_url = "https://github.com/jbrownlee/Datasets/releases/download/Flickr8k/Flickr8k_text.zip"
r = requests.get(file_url, stream = True)
placeToDownload = "/content/drive/My Drive/Colab Notebooks/image-caption-gen-flickr8k/Flickr8k_text.zip"
with open(placeToDownload, "wb") as file:
for block in r.iter_content(chunk_size = 1024):
if block:
file.write(block)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment