Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 542 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 542 Bytes

node-cjs

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.

Instructions

  1. Clone the repository:
    git clone https://github.com/huggingface/transformers.js-examples.git
  2. Change directory to the node-cjs project:
    cd transformers.js-examples/node-cjs
  3. Install the dependencies:
    npm install
  4. Run the example:
    node index.js