š©āšØ Paint by Text
Modify images by chatting with a generative AI model. This project provides a web interface to interact with the InstructPix2Pix model.
How it works
This app is powered by:
š Replicate, a platform for running machine learning models in the cloud.
šØ InstructPix2Pix, an open-source machine learning model that generates images from text.
ā² Vercel, a platform for running web apps.
ā”ļø Next.js server-side API routes, for talking to the Replicate API.
š Next.js React components, for the browser UI.
š Tailwind CSS, for styles.
Development
To run locally:
- Install a recent version of Node.js
- Copy your Replicate API token and set it in your environment:
echo "REPLICATE_API_TOKEN=<your-token-here>" > .env.local
- Install dependencies and run the server:
npm install
npm run dev
- Open
localhost:3000
in your browser. That's it!