This project is a simple Image Caption Generator built with Next.js and uses the BLIP-2 (Bootstrapped Language-Image Pre-training 2) model via Replicate's API to generate captions for uploaded images. The app includes drag-and-drop image upload, dark mode support, and a responsive design.
To set up the project:
-
Run
yarn install
to install the dependencies. -
Rename
.env.local.example
to.env.local
and add your Replicate API key. -
Start the development server with
yarn dev
and open http://localhost:3000 in your browser.