taarhissian commited on
Commit
df48628
·
verified ·
1 Parent(s): b3a4477

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -1,5 +1,17 @@
1
  import streamlit as st
2
  from streamlit.components.v1 import html
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  # Embed custom HTML and JS for 3D rendering (Three.js example)
5
  html_code = """
 
1
  import streamlit as st
2
  from streamlit.components.v1 import html
3
+ import streamlit as st
4
+
5
+ # User Inputs
6
+ wall_height = st.slider("Wall Height (meters)", min_value=2, max_value=5, value=3)
7
+ room_length = st.number_input("Room Length (meters)", value=5)
8
+ room_width = st.number_input("Room Width (meters)", value=4)
9
+
10
+ # Action Button for Floor Plan Update
11
+ if st.button("Generate Floor Plan"):
12
+ st.write(f"Generating floor plan for {room_length}m x {room_width}m with walls {wall_height}m high")
13
+ # Call a function here that updates the floor plan based on user input
14
+ update_floor_plan(room_length, room_width, wall_height)
15
 
16
  # Embed custom HTML and JS for 3D rendering (Three.js example)
17
  html_code = """