This project demonstrates how to use @huggingface/transformers in a Node.js environment using ECMAScript Modules (ESM). The example utilizes import statements for module loading.
- Clone the repository:
git clone https://github.com/huggingface/transformers.js-examples.git
- Change directory to the
node-esmproject:cd transformers.js-examples/node-esm - Install the dependencies:
npm install
- Run the example:
node index.js