Skip to content

Instantly share code, notes, and snippets.

@akshay-3apr
Last active December 15, 2019 09:01
Show Gist options
  • Save akshay-3apr/02034b9281ba687cfd4c00f0479f5b10 to your computer and use it in GitHub Desktop.
Save akshay-3apr/02034b9281ba687cfd4c00f0479f5b10 to your computer and use it in GitHub Desktop.
# To upload data from local disk at run time, uncomment below code
#from google.colab import files
#uploaded = files.upload()
# The below code is when we integrate Google drive to current Colab session.
# This is helpful when we want to store the trained model, and later download it to local.
from google.colab import drive
drive.mount('/content/gdrive')
os.chdir('/content/gdrive/My Drive')
if not (os.path.exists('/content/gdrive/My Drive/BERTFineTuning')):
os.mkdir('BERTFineTuning')
os.chdir('/content/gdrive/My Drive/BERTFineTuning')
else:
os.chdir('/content/gdrive/My Drive/BERTFineTuning')
os.listdir()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment