Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ col1, col2 = st.columns([1, 2]) # Adjust the width ratios as needed
|
|
22 |
with col1:
|
23 |
st.subheader('Features')
|
24 |
|
25 |
-
with st.container(height=
|
26 |
city = st.selectbox('City', list(cities_geo.keys())) # Display city dropdown in the first column
|
27 |
waterfront = st.checkbox('Waterfront', value=False)
|
28 |
bedrooms = st.slider('Bedrooms', min_value=min_dict['bedrooms'], max_value=max_dict['bedrooms'], value=3)
|
@@ -69,7 +69,7 @@ with col2:
|
|
69 |
price_placeholder.markdown(
|
70 |
f"<h1 style='font-size: 24px;'>Predicted Price: ${predicted_price[0][0]:,.2f}</h1>",
|
71 |
unsafe_allow_html=True)
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
|
|
22 |
with col1:
|
23 |
st.subheader('Features')
|
24 |
|
25 |
+
with st.container(height=800, border=False):
|
26 |
city = st.selectbox('City', list(cities_geo.keys())) # Display city dropdown in the first column
|
27 |
waterfront = st.checkbox('Waterfront', value=False)
|
28 |
bedrooms = st.slider('Bedrooms', min_value=min_dict['bedrooms'], max_value=max_dict['bedrooms'], value=3)
|
|
|
69 |
price_placeholder.markdown(
|
70 |
f"<h1 style='font-size: 24px;'>Predicted Price: ${predicted_price[0][0]:,.2f}</h1>",
|
71 |
unsafe_allow_html=True)
|
72 |
+
map_data = pd.DataFrame(cities_geo[city])
|
73 |
+
st.map(map_data, zoom=11)
|
74 |
+
# with st.container(height=500, border=False):
|
75 |
+
|