This project demonstrates how to compute text embeddings with Transformers.js in a Deno environment.
-
Clone the repository:
git clone https://github.com/huggingface/transformers.js-examples.git
-
Change directory to the
deno-embed
project:cd transformers.js-examples/deno-embed
-
Install the dependencies:
deno install --allow-scripts
-
Run the example:
deno run --allow-net --allow-ffi --allow-env --allow-read --allow-write main.ts