Skip to content

Instantly share code, notes, and snippets.

@mlai-demo
Last active August 11, 2019 18:54
Show Gist options
  • Save mlai-demo/310190a4cebf423698ce91a5c6b51eca to your computer and use it in GitHub Desktop.
Save mlai-demo/310190a4cebf423698ce91a5c6b51eca to your computer and use it in GitHub Desktop.
import files into Google Colab
from google.colab import files
uploaded = files.upload()
for fn in uploaded.keys():
print('User uploaded file "{name}" with length {length} bytes'.format(
name=fn, length=len(uploaded[fn])))
# Click Files tab - the uploaded file(s) will be there
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment