Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -198,8 +198,8 @@ if next_step == "🎨 Explore design ideas (color palettes, materials for your c
|
|
| 198 |
default=["Climate-Responsive Material Suggestions", "Interior Color Palette"]
|
| 199 |
)
|
| 200 |
|
| 201 |
-
|
| 202 |
-
|
| 203 |
with st.spinner("Designing your dream space..."):
|
| 204 |
|
| 205 |
def generate_design_ideas(prompt, region, style, categories):
|
|
@@ -284,7 +284,6 @@ Focus on realistic materials, lighting, and color palette. Use a 3D rendering st
|
|
| 284 |
st.image(concept_image_url, caption="Generated Concept Image", use_column_width=True)
|
| 285 |
st.markdown(f"[Download Image]({concept_image_url})", unsafe_allow_html=True)
|
| 286 |
|
| 287 |
-
# Store this in session state (optional for later use)
|
| 288 |
st.session_state.generated_concept_image_url = concept_image_url
|
| 289 |
|
| 290 |
except Exception as e:
|
|
@@ -294,3 +293,4 @@ Focus on realistic materials, lighting, and color palette. Use a 3D rendering st
|
|
| 294 |
|
| 295 |
|
| 296 |
|
|
|
|
|
|
| 198 |
default=["Climate-Responsive Material Suggestions", "Interior Color Palette"]
|
| 199 |
)
|
| 200 |
|
| 201 |
+
# Generate design ideas with GPT
|
| 202 |
+
if st.button("Generate Design Ideas"):
|
| 203 |
with st.spinner("Designing your dream space..."):
|
| 204 |
|
| 205 |
def generate_design_ideas(prompt, region, style, categories):
|
|
|
|
| 284 |
st.image(concept_image_url, caption="Generated Concept Image", use_column_width=True)
|
| 285 |
st.markdown(f"[Download Image]({concept_image_url})", unsafe_allow_html=True)
|
| 286 |
|
|
|
|
| 287 |
st.session_state.generated_concept_image_url = concept_image_url
|
| 288 |
|
| 289 |
except Exception as e:
|
|
|
|
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
+
|