Karley8 commited on
Commit
2d6bb38
ยท
verified ยท
1 Parent(s): 5f6b17e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -246,13 +246,13 @@ if st.button("Generate Design Ideas"):
246
  "Image URL": st.session_state.get("generated_image_url", "Not generated")
247
  }
248
 
249
- # === Download Summary ===
250
- import io
251
 
252
- st.markdown("---")
253
- st.markdown("### ๐Ÿ“ฅ Download Your Concept Summary")
254
 
255
- if st.button("Download Summary as Text"):
256
  summary = st.session_state.design_summary
257
  content = f"""๐Ÿ  AI Architecture Design Summary
258
 
@@ -279,11 +279,12 @@ Selected Categories: {', '.join(summary['Categories'])}
279
  file_name="design_summary.txt",
280
  mime="text/plain"
281
  )
 
 
282
  st.markdown("### ๐Ÿ–ผ๏ธ Visualizing Your Design Concept")
283
 
284
  if st.button("Generate Concept Image from Design Summary"):
285
  with st.spinner("Creating a personalized visual..."):
286
-
287
  refined_prompt = (
288
  f"Based on the following tiny home project details:\n\n"
289
  f"Region: {design_region}\n"
@@ -316,3 +317,4 @@ if st.button("Generate Concept Image from Design Summary"):
316
 
317
 
318
 
 
 
246
  "Image URL": st.session_state.get("generated_image_url", "Not generated")
247
  }
248
 
249
+ # === Download Summary ===
250
+ import io
251
 
252
+ st.markdown("---")
253
+ st.markdown("### ๐Ÿ“ฅ Download Your Concept Summary")
254
 
255
+ if st.button("Download Summary as Text"):
256
  summary = st.session_state.design_summary
257
  content = f"""๐Ÿ  AI Architecture Design Summary
258
 
 
279
  file_name="design_summary.txt",
280
  mime="text/plain"
281
  )
282
+
283
+ # === Concept Image Generation ===
284
  st.markdown("### ๐Ÿ–ผ๏ธ Visualizing Your Design Concept")
285
 
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"
 
317
 
318
 
319
 
320
+