How it Works
RoomGPT uses an ML model called ControlNet to generate variations of rooms. Users can upload a photo of any room, which is then processed through this ML Model using a Next.js API route, and the generated room is returned. The ML Model is hosted on Replicate and Bytescale is used for image storage.
Running Locally
- Clone the Repository
git clone https://github.com/Nutlope/roomGPT
- Create a Replicate Account
- Go to Replicate and create an account.
- Click on your profile picture in the top left corner, and select "API Tokens".
- Copy your API token.
- Store API Keys in .env
Create a .env file in the root directory of the project and store your API key in it, as shown in the .example.env file.
- Install Dependencies
npm install
- Run the Application
npm run dev
The application will be available at http://localhost:3000
.
One-Click Deploy
Deploy the example using Vercel:
License
This repo is MIT licensed.