A Python package to generate interior design previews using Poe API models.
Project description
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
-
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. -
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")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b97fdaa2442b54a5c59defc0290e8f9b285007b595f3ec9672193b0ab0de2175
|
|
| MD5 |
dfdbbb5c649f40643c14677d191bca88
|
|
| BLAKE2b-256 |
504621f8fe7b3890e74b4796d5db8af85a550da8f87ab65138d01b82b030001b
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
interior_preview_bot-0.1.0.tar.gz -
Subject digest:
b97fdaa2442b54a5c59defc0290e8f9b285007b595f3ec9672193b0ab0de2175 - Sigstore transparency entry: 409793784
- Sigstore integration time:
-
Permalink:
NewJerseyStyle/interior_preview_bot@22d1a329d7e661e9415ee964ff5ee3b7c461a09e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/NewJerseyStyle
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@22d1a329d7e661e9415ee964ff5ee3b7c461a09e -
Trigger Event:
release
-
Statement type:
File details
Details for the file interior_preview_bot-0.1.0-py3-none-any.whl.
File metadata
- Download URL: interior_preview_bot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab1c6234fee1c605e3a34e26c3b8a380053f79c90741b04e55e177edc9ab0df1
|
|
| MD5 |
9ca8ffb690b2c7f07dba2384f3e17524
|
|
| BLAKE2b-256 |
8590e876e4e75731033f8e174cfe643e711fe5345e013f5e76ace2675e958328
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
interior_preview_bot-0.1.0-py3-none-any.whl -
Subject digest:
ab1c6234fee1c605e3a34e26c3b8a380053f79c90741b04e55e177edc9ab0df1 - Sigstore transparency entry: 409793859
- Sigstore integration time:
-
Permalink:
NewJerseyStyle/interior_preview_bot@22d1a329d7e661e9415ee964ff5ee3b7c461a09e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/NewJerseyStyle
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@22d1a329d7e661e9415ee964ff5ee3b7c461a09e -
Trigger Event:
release
-
Statement type: