An open API service indexing awesome lists of open source software.

https://github.com/tonykipkemboi/room-decorator-ai

๐Ÿ  Transform your room with AI-powered interior design using FLUX API. Clean, minimal UI with Jony Ive-inspired design.
https://github.com/tonykipkemboi/room-decorator-ai

Last synced: 3 months ago
JSON representation

๐Ÿ  Transform your room with AI-powered interior design using FLUX API. Clean, minimal UI with Jony Ive-inspired design.

Awesome Lists containing this project

README

          

# ๐Ÿ  Room Decorator AI

**Transform your room with AI-powered interior design using the FLUX API**

[![Streamlit](https://img.shields.io/badge/Streamlit-FF4B4B?style=for-the-badge&logo=Streamlit&logoColor=white)](https://github.com/tonykipkemboi/room-decorator-ai)
[![Python](https://img.shields.io/badge/Python-3776AB?style=for-the-badge&logo=python&logoColor=white)](https://www.python.org/downloads/)
[![FLUX API](https://img.shields.io/badge/FLUX_API-000000?style=for-the-badge&logo=artificial-intelligence&logoColor=white)](https://docs.bfl.ai/)
[![MIT License](https://img.shields.io/badge/License-MIT-green?style=for-the-badge)](https://opensource.org/licenses/MIT)

![Room Decorator AI Screenshot](assets/image.png)

*Upload a room photo, choose a style, and watch AI transform your space!*

---

## โœจ Features

- ๐Ÿ–ผ๏ธ **Smart Image Upload** - Drag & drop room photos (PNG, JPG, JPEG up to 20MB)
- ๐ŸŽจ **8 Preset Styles** - From Modern Minimalist to Bohemian, or create custom prompts
- โšก **Real-time Processing** - Watch your room transform in real-time
- ๐Ÿ“ฑ **Responsive Design** - Works beautifully on desktop and mobile
- ๐Ÿ“ฅ **Instant Download** - Get your decorated room image immediately
- โš™๏ธ **Flexible Aspect Ratios** - Choose from multiple output formats

---

## ๐Ÿš€ Quick Start

### 1. Installation

```bash
# Clone the repository
git clone https://github.com/tonykipkemboi/room-decorator-ai.git
cd room-decorator-ai

# Install dependencies
pip install -r requirements.txt
```

### 2. Setup API Key

**For Local Development:**
```toml
# .streamlit/secrets.toml (optional)
BFL_API_KEY = "your_flux_api_key_here"
```

**For Public Deployment:**
- The app will prompt users to enter their own API key
- No setup required - users provide their own keys

> ๐Ÿ’ก Get your API key from [Black Forest Labs](https://docs.bfl.ai/)

### 3. Run the App

**Clean, Minimal UI (Recommended):**
```bash
streamlit run streamlit_app_clean.py
```

**Feature-Rich UI:**
```bash
streamlit run streamlit_app.py
```

Open your browser to `http://localhost:8501` and start decorating! ๐ŸŽ‰

---

## ๐ŸŽจ Decoration Styles

๐Ÿข Modern Minimalist
Sleek furniture with clean lines
๐Ÿ›‹๏ธ Cozy Living
Warm lighting and comfort
๐Ÿ‘‘ Victorian Elegant
Ornate details and rich fabrics
๐Ÿ’ผ Modern Office
Professional workspace setup

๐ŸŒˆ Bohemian
Colorful and artistic vibes
๐ŸŒฒ Scandinavian
Light wood and minimalism
โš™๏ธ Industrial
Exposed elements and metal
๐Ÿ–๏ธ Mediterranean
Warm colors and rustic charm

---

## ๐Ÿ”ง How It Works

1. **๐Ÿ“ค Upload** your room photo
2. **๐ŸŽฏ Choose** a decoration style or write custom prompts
3. **โšก Process** with FLUX.1 Kontext [pro] AI model
4. **๐Ÿ“ฑ Preview** your transformed space
5. **๐Ÿ’พ Download** the decorated image

---

## ๐ŸŽจ Design Philosophy

This app comes in two versions:

### **Clean UI** (`streamlit_app_clean.py`) - *Recommended*
- **Jony Ive-inspired minimalism** - Only essential elements
- **Step-by-step flow** - Upload โ†’ Style โ†’ Generate
- **Zero cognitive overload** - One task at a time
- **Elegant simplicity** - Clean typography and subtle animations
- **Centered layout** - Focused, distraction-free design

### **Feature-Rich UI** (`streamlit_app.py`)
- **Advanced options** - Multiple controls and settings
- **Power user features** - Style intensity, quality options
- **Comprehensive feedback** - Detailed metrics and info
- **Sidebar controls** - All options accessible

---

## ๐Ÿ“ Project Structure

```
room-decorator-ai/
โ”œโ”€โ”€ ๐ŸŽฏ streamlit_app_clean.py # Clean, minimal UI (recommended)
โ”œโ”€โ”€ ๐ŸŽ›๏ธ streamlit_app.py # Feature-rich UI with advanced options
โ”œโ”€โ”€ ๐Ÿ”ง room_decorator.py # FLUX API wrapper class
โ”œโ”€โ”€ ๐Ÿงช test_room_decorator.py # Comprehensive test suite
โ”œโ”€โ”€ ๐Ÿ“‹ requirements.txt # Python dependencies
โ”œโ”€โ”€ โš™๏ธ .streamlit/
โ”‚ โ”œโ”€โ”€ config.toml # Clean theme configuration
โ”‚ โ””โ”€โ”€ secrets.toml # API keys (gitignored)
โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ assets/
โ”‚ โ””โ”€โ”€ image.png # App screenshot
โ”œโ”€โ”€ ๐Ÿ“š docs.md # Comprehensive documentation
โ”œโ”€โ”€ ๐Ÿšซ .gitignore # Git ignore rules
โ””โ”€โ”€ ๐Ÿ“– README.md # This file
```

---

## โš™๏ธ Technical Specifications

| Feature | Specification |
|---------|---------------|
| **AI Model** | FLUX.1 Kontext [pro] |
| **Max File Size** | 20MB |
| **Supported Formats** | PNG, JPG, JPEG |
| **Processing Time** | 30-60 seconds |
| **Aspect Ratios** | 16:9, 4:3, 1:1, 3:4, 9:16 |
| **Concurrent Requests** | Up to 24 |
| **Image Expiration** | 10 minutes |

---

## ๐ŸŽฏ Usage Tips

### ๐Ÿ“ธ **Best Photo Practices**
- Use well-lit, clear room photos
- Ensure the room is the main focus
- Avoid cluttered or dark images
- Include architectural features for context

### โœ๏ธ **Prompt Writing**
- Be specific about furniture and colors
- Mention lighting preferences
- Include style keywords (modern, vintage, etc.)
- Describe the room's intended use

### ๐ŸŽจ **Style Combinations**
- Mix styles: "Scandinavian with industrial accents"
- Specify colors: "Add warm earth tones"
- Include textures: "Incorporate natural wood and metal"

---

## ๐Ÿค Contributing

We welcome contributions! Here's how you can help:

1. ๐Ÿด Fork the repository
2. ๐ŸŒฟ Create a feature branch (`git checkout -b feature/amazing-feature`)
3. ๐Ÿ’พ Commit your changes (`git commit -m 'Add amazing feature'`)
4. ๐Ÿ“ค Push to the branch (`git push origin feature/amazing-feature`)
5. ๐Ÿ”„ Open a Pull Request

---

## ๐Ÿ“ License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---

## ๐Ÿ™ Acknowledgments

- **[Black Forest Labs](https://blackforestlabs.ai/)** for the powerful FLUX API
- **[Streamlit](https://streamlit.io/)** for the amazing web framework
- **Community contributors** for feedback and improvements

---

**Made with โค๏ธ and AI**

[โญ Star this repo](https://github.com/tonykipkemboi/room-decorator-ai/stargazers) โ€ข [๐Ÿ› Report Bug](https://github.com/tonykipkemboi/room-decorator-ai/issues) โ€ข [๐Ÿ’ก Request Feature](https://github.com/tonykipkemboi/room-decorator-ai/issues)