Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can I use it in Deno? It requires a worker (fails in node because "self")


Yes, there are some workarounds you can do to get it working in non-browser environments. I do aim to get a permanent solution, which will ideally work out-of-the-box for both browser and node/deno environments.

Some other users also reported the issue (which stems from a bug in onnxruntime-web), and we were able to get it working in these cases:

1. https://github.com/xenova/transformers.js/issues/4 2. https://github.com/xenova/transformers.js/issues/19


Thanks, I will be following




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: