Spaces:
Sleeping
Sleeping
Update app/building_information.py
Browse files- app/building_information.py +8 -14
app/building_information.py
CHANGED
@@ -293,28 +293,22 @@ def display_building_info_help():
|
|
293 |
def display_orientation_diagram():
|
294 |
"""Display orientation images showing building orientation."""
|
295 |
col1, col2 = st.columns(2)
|
296 |
-
|
297 |
with col1:
|
298 |
st.markdown(
|
299 |
-
""
|
300 |
-
<div style="display: flex; justify-content: center; align-items: center;">
|
301 |
-
<img src="images/orientation1.jpg" width="300" />
|
302 |
-
</div>
|
303 |
-
<p style="text-align: center;">Building Orientation Angle = 0</p>
|
304 |
-
""",
|
305 |
unsafe_allow_html=True
|
306 |
)
|
307 |
-
|
|
|
|
|
308 |
with col2:
|
309 |
st.markdown(
|
310 |
-
""
|
311 |
-
<div style="display: flex; justify-content: center; align-items: center;">
|
312 |
-
<img src="images/orientation2.jpg" width="300" />
|
313 |
-
</div>
|
314 |
-
<p style="text-align: center;">Building Orientation Angle = 45</p>
|
315 |
-
""",
|
316 |
unsafe_allow_html=True
|
317 |
)
|
|
|
|
|
318 |
|
319 |
def calculate_volume(floor_area: float, height: float) -> float:
|
320 |
"""
|
|
|
293 |
def display_orientation_diagram():
|
294 |
"""Display orientation images showing building orientation."""
|
295 |
col1, col2 = st.columns(2)
|
296 |
+
|
297 |
with col1:
|
298 |
st.markdown(
|
299 |
+
'<div style="display: flex; justify-content: center; align-items: center; width: 100%; text-align: center; margin: 0 auto;">',
|
|
|
|
|
|
|
|
|
|
|
300 |
unsafe_allow_html=True
|
301 |
)
|
302 |
+
st.image("images/orientation1.jpg", caption="Building Orientation Angle = 0", width=300, use_column_width=False, output_format="auto")
|
303 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
304 |
+
|
305 |
with col2:
|
306 |
st.markdown(
|
307 |
+
'<div style="display: flex; justify-content: center; align-items: center; width: 100%; text-align: center; margin: 0 auto;">',
|
|
|
|
|
|
|
|
|
|
|
308 |
unsafe_allow_html=True
|
309 |
)
|
310 |
+
st.image("images/orientation2.jpg", caption="Building Orientation Angle = 45", width=300, use_column_width=False, output_format="auto")
|
311 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
312 |
|
313 |
def calculate_volume(floor_area: float, height: float) -> float:
|
314 |
"""
|