Skip to main content

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

pip install interior_preview_bot

Usage

  1. Get a Poe API Key: Create an API key from poe.com/api_key and set it as an environment variable named POE_API_KEY.

  2. Run the preview pipeline:

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")

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

interior_preview_bot-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

interior_preview_bot-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file interior_preview_bot-0.1.0.tar.gz.

File metadata

  • Download URL: interior_preview_bot-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for interior_preview_bot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b97fdaa2442b54a5c59defc0290e8f9b285007b595f3ec9672193b0ab0de2175
MD5 dfdbbb5c649f40643c14677d191bca88
BLAKE2b-256 504621f8fe7b3890e74b4796d5db8af85a550da8f87ab65138d01b82b030001b

See more details on using hashes here.

Provenance

The following attestation bundles were made for interior_preview_bot-0.1.0.tar.gz:

Publisher: python-publish.yml on NewJerseyStyle/interior_preview_bot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file interior_preview_bot-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for interior_preview_bot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab1c6234fee1c605e3a34e26c3b8a380053f79c90741b04e55e177edc9ab0df1
MD5 9ca8ffb690b2c7f07dba2384f3e17524
BLAKE2b-256 8590e876e4e75731033f8e174cfe643e711fe5345e013f5e76ace2675e958328

See more details on using hashes here.

Provenance

The following attestation bundles were made for interior_preview_bot-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on NewJerseyStyle/interior_preview_bot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page