Metadata-Version: 2.4
Name: interior_preview_bot
Version: 0.1.0
Summary: A Python package to generate interior design previews using Poe API models.
Author: Gemini
Author-email: NewJerseyStyle <work.source.wishes@gmail.com>
Project-URL: Homepage, https://github.com/NewJerseyStyle/interior_preview_bot
Project-URL: Bug Tracker, https://github.com/NewJerseyStyle/interior_preview_bot/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: openai
Dynamic: license-file

# Interior Preview Bot

A Python package to generate interior design previews using the IPPrompter-1, Segment-Anything-v2, and IPPreview-1 models on Poe.

## Installation

```bash
pip install interior_preview_bot
```

## Usage

1.  **Get a Poe API Key:**
    Create an API key from [poe.com/api_key](https://poe.com/api_key) and set it as an environment variable named `POE_API_KEY`.

2.  **Run the preview pipeline:**

```python
import os
from interior_preview_bot import InteriorPreviewBot

api_key = os.getenv("POE_API_KEY")

bot = InteriorPreviewBot(api_key=api_key)

# Generate a preview
result_image = bot.generate_preview(
    room_image_path="path/to/your/room.png",
    reference_image_path="path/to/your/material.png",
    prompt="Replace the floor with this marble texture.",
    # Optional parameters
    # quality="high", 
    # aspect="1:1",
    # use_sam_mask=True
)

# The result is a bytes object, you can save it to a file
with open("preview_result.png", "wb") as f:
    f.write(result_image)

print("Preview image saved to preview_result.png")
```
