Thanks for showing how to import face-api! I used it in this just published notebook:
https://observablehq.com/@mcmcclur/tour-faces
I'm unfamiliar with this syntax:
import('string')
I've always used
import { f } from 'string'
I can't even figure out where "@vladmandic/face-api/dist/face-api.esm.js" lives! Can you point me to some documentation on that, please?
Thanks a lot - that helps! I'm still a bit confused, though.
I guess that import('@user/.../file.js') is a short cut to import esm bundles directly from Github. As far as I can tell, though, the file
https://github.com/vladmandic/face-api/dist/face-api.esm.js
doesn't exist. Poking around, there is a file at
https://raw.githubusercontent.com/vladmandic/face-api/master/dist/face-api.esm.js
but I can't seem to import it directly.
So I guess my main question is: If I find an interesting esm.js file on Github, what is the mapping from that URL to the appropriate import command?
I hope that makes sense and thanks again!