https://github.com/codybontecou/nuxt-workers-transformersjs
https://github.com/codybontecou/nuxt-workers-transformersjs
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codybontecou/nuxt-workers-transformersjs
- Owner: CodyBontecou
- Created: 2025-02-26T04:57:47.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-26T05:11:55.000Z (3 months ago)
- Last Synced: 2025-02-26T06:17:57.324Z (3 months ago)
- Language: TypeScript
- Homepage: https://nuxt-workers-transformersjs.vercel.app
- Size: 90.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [Nuxt Workers](https://github.com/danielroe/nuxt-workers) + [Transformers.js](https://huggingface.co/docs/transformers.js/en/index)
Here's a basic demo using these two tools. Transformers.js is typically used within a web worker for several important performance reasons:
- Main thread protection
- Computation isolation
- Memory management
- ParallelizationThis is a barebones demo showing Transformers.js working within a Nuxt application alongside Daniel Roe's worker module.
This code is deployed here - https://nuxt-workers-transformersjs.vercel.app/
**Note:** The model [Xenova/nllb-200-distilled-600M](https://huggingface.co/Xenova/nllb-200-distilled-600M) will begin installing on page load. It will take a bit of time depending on your internet speed.