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