https://github.com/replicate/paint-by-text
A microsite for InstructPix2Pix
https://github.com/replicate/paint-by-text
Last synced: 10 months ago
JSON representation
A microsite for InstructPix2Pix
- Host: GitHub
- URL: https://github.com/replicate/paint-by-text
- Owner: replicate
- License: mit
- Created: 2023-01-24T23:16:26.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-11T18:10:15.000Z (over 2 years ago)
- Last Synced: 2025-04-03T02:15:24.630Z (10 months ago)
- Language: JavaScript
- Homepage: https://paintbytext.chat
- Size: 2.06 MB
- Stars: 453
- Watchers: 20
- Forks: 100
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 👩🎨 Paint by Text
Modify images by chatting with a generative AI model.
Try it out at [paintbytext.chat](http://paintbytext.chat)
## How it works
This app is powered by:
🚀 [Replicate](https://replicate.com/?utm_source=project&utm_campaign=paintbytext), a platform for running machine learning models in the cloud.
🎨 [InstructPix2Pix](https://replicate.com/timothybrooks/instruct-pix2pix?utm_source=project&utm_campaign=paintbytext), an open-source machine learning model that generates images from text.
▲ [Vercel](https://vercel.com/), a platform for running web apps.
⚡️ Next.js [server-side API routes](pages/api), for talking to the Replicate API.
👀 Next.js React components, for the browser UI.
🍃 [Tailwind CSS](https://tailwindcss.com/), for styles.
## Development
1. Install a recent version of [Node.js](https://nodejs.org/)
1. Copy your [Replicate API token](https://replicate.com/account?utm_source=project&utm_campaign=paintbytext) and set it in your environment:
```
echo "REPLICATE_API_TOKEN=" > .env.local
````
1. Install dependencies and run the server:
```
npm install
npm run dev
```
1. Open [localhost:3000](http://localhost:3000) in your browser. That's it!