This is a simple Image Caption Generator web application that uses Google Gemini API to generate captions for uploaded images.
- Upload an image
- Get an AI-generated caption
- Simple frontend using HTML, CSS, and JavaScript
- Backend powered by Node.js, Express, and Gemini API
git clone https://github.com/yourusername/image-caption-generator.git
cd image-caption-generatornpm installCreate a .env file in the root directory and add:
GEMINI_API_KEY=your_actual_api_key
node server.jsThe server should start at http://localhost:5000
Open public/index.html in your browser and upload an image to generate a caption.
