danielmlow / tutorials

Quick and dirty tutorials and templates
Apache License 2.0
3 stars 1 forks source link

Accessing private files for annotation #1

Open danielmlow opened 2 years ago

danielmlow commented 2 years ago

@satra

The way I set up the script, the user can access their google drive and it will save their annotations to Google Drive. And it includes the option of saving and continuing later (by loading all the saved files of the person with the same initials).  https://github.com/danielmlow/tutorials/blob/main/annotation.ipynb (if you open in Google Colab you'll see the code is hidden for the user).

Two options for accessing audio files: Option A) So I need the user to download and then upload a directory with the script and the files to a specific path in their Drive so they don't need to change the path in the script (since they don't know how to code and to make things simpler). 

Option B) A better option would be loading the files from a URL. But I'm not sure where to store the audio files on a server in a private manner to then import from a URL and not sure if there might be loading/memory issues.  Any thoughts? 

Thanks!

satra commented 2 years ago

don't know a clean solution.

  1. it is possible for anyone save a shared google folder to their drive. so that may be the easiest if both of them have google accounts they can use.
  2. ask them to upload (i think there is a way in colab to do this), and then your cell can unzip locally.

originally, i was thinking you could use reproschema for this, with a special parameter that would access the files from some location and that would also then make it easy for people to use. but this is probably more work.