Karley8 commited on
Commit
96d0922
·
verified ·
1 Parent(s): 2d6bb38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
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
- 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: {design_results}\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
  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(