I'm able to manually upload a file to Google Colab using the following code.
1 import json
2 from google.colab import files
3 uploaded = files.upload()
Each time it reaches Line 3, I'll have to manually click Upload File, then select the file locally before the code continues to run. After a few runs, even if I cancel the upload at Line 3, it seems to run just fine without uploading the file.
How do you automatically upload the same file (stored locally) each time you run the code in Google Colab? Or should I store it in Google Drive and link the file's URL? If so, how would I do that in the code?