Skip to content

armenavanesi/image-caption

Repository files navigation

Image Caption Generator

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.

Getting Started

To set up the project:

  1. Run yarn install to install the dependencies.

  2. Rename .env.local.example to .env.local and add your Replicate API key.

  3. Start the development server with yarn dev and open http://localhost:3000 in your browser.