News for hackers. Stuff that matters.
Re:Transformers.js: State-of-the-art Machine Learning for th... by CapsAdmin on Thursday April 11, 2024 @09:06AM (#40001665)
If they are single files or directories they could be drag dropped on use. Not very convenient though.

Maybe just some sort of api to give the website fine grained access to the filesystem might be enough. You'd specify a directory or single file the website can read from at any time.

However at some point you will have to download large files. I feel when done implicitly it's bad user experience.

On top of that the developer should implement a robust downloading system that can resume downloads, check for validity, etc. Developers rarerly bother with this, so the user experience is that it sucks.

Re:Transformers.js: State-of-the-art Machine Learning for th... by jampekka on Thursday April 11, 2024 @09:16AM (#40001761)
Re:Transformers.js: State-of-the-art Machine Learning for th... by elpocko on Thursday April 11, 2024 @09:25AM (#40001871)
Still requires drag&drop on most browsers because the File/DirectoryPicker API isn't universally supported.
Re:Transformers.js: State-of-the-art Machine Learning for th... by jampekka on Thursday April 11, 2024 @09:39AM (#40002030)
Origin private file system is supported in all modern browsers. That does make sharing the models between origins difficult at best, but for one origin works fine.

And in any case it's easier to direct users to install Chrome (or preferably Chromium) or instruct drag&drop than doing the brittle and error and bitrot prone virtualenv-pip-docker-git song and dance.