Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -286,14 +286,15 @@ st.markdown("### 🖼️ Visualizing Your Design Concept")
|
|
| 286 |
if st.button("Generate Concept Image from Design Summary"):
|
| 287 |
with st.spinner("Creating a personalized visual..."):
|
| 288 |
refined_prompt = (
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
|
|
|
| 297 |
|
| 298 |
try:
|
| 299 |
response = client.images.generate(
|
|
|
|
| 286 |
if st.button("Generate Concept Image from Design Summary"):
|
| 287 |
with st.spinner("Creating a personalized visual..."):
|
| 288 |
refined_prompt = (
|
| 289 |
+
f"Based on the following tiny home project details:\n\n"
|
| 290 |
+
f"Region: {design_region}\n"
|
| 291 |
+
f"Style: {design_style}\n"
|
| 292 |
+
f"Categories: {', '.join(selected_categories)}\n"
|
| 293 |
+
f"Design Suggestions: {st.session_state.design_summary['Design Suggestions']}\n\n"
|
| 294 |
+
"Create a professional architectural rendering that visually reflects this concept.\n"
|
| 295 |
+
"Focus on realistic materials, lighting, and color palette. Use a 3D rendering style with natural surroundings."
|
| 296 |
+
)
|
| 297 |
+
|
| 298 |
|
| 299 |
try:
|
| 300 |
response = client.images.generate(
|