Follow the steps below to set up and run the application.
Clone the examples repository from GitHub:
git clone https://github.com/huggingface/transformers.js-examples.git
Change your working directory to the florence2-webgpu
folder:
cd transformers.js-examples/florence2-webgpu
Install the necessary dependencies using npm:
npm i
Start the development server:
npm run dev
The application should now be running locally. Open your browser and go to http://localhost:5173
to see it in action.