Created
December 23, 2019 07:01
-
-
Save shellkore/2f2befb9b0f3a09793fc1169affff891 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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