Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,10 @@ with open("./cities_geo.json", "r") as f:
|
|
21 |
st.markdown("""
|
22 |
<style>
|
23 |
.stSlider [data-baseweb=slider]{
|
24 |
-
width:
|
|
|
|
|
|
|
25 |
}
|
26 |
</style>
|
27 |
""",unsafe_allow_html=True)
|
@@ -32,10 +35,9 @@ col1, col2 = st.columns([1, 2]) # Adjust the width ratios as needed
|
|
32 |
with col1:
|
33 |
st.subheader('Features')
|
34 |
|
35 |
-
with st.container(
|
36 |
city = st.selectbox('City', list(cities_geo.keys())) # Display city dropdown in the first column
|
37 |
waterfront = st.checkbox('Waterfront', value=False)
|
38 |
-
|
39 |
st.markdown('<div class="slider-container">', unsafe_allow_html=True)
|
40 |
bedrooms = st.slider('Bedrooms', min_value=min_dict['bedrooms'], max_value=max_dict['bedrooms'], value=3)
|
41 |
bathrooms = st.slider('Bathrooms', min_value=min_dict['bathrooms'], max_value=max_dict['bathrooms'], value=2)
|
|
|
21 |
st.markdown("""
|
22 |
<style>
|
23 |
.stSlider [data-baseweb=slider]{
|
24 |
+
width: 95%;
|
25 |
+
}
|
26 |
+
.stCheckbox, .stSelectbox {
|
27 |
+
width: 95%px;
|
28 |
}
|
29 |
</style>
|
30 |
""",unsafe_allow_html=True)
|
|
|
35 |
with col1:
|
36 |
st.subheader('Features')
|
37 |
|
38 |
+
with st.container(border=False):
|
39 |
city = st.selectbox('City', list(cities_geo.keys())) # Display city dropdown in the first column
|
40 |
waterfront = st.checkbox('Waterfront', value=False)
|
|
|
41 |
st.markdown('<div class="slider-container">', unsafe_allow_html=True)
|
42 |
bedrooms = st.slider('Bedrooms', min_value=min_dict['bedrooms'], max_value=max_dict['bedrooms'], value=3)
|
43 |
bathrooms = st.slider('Bathrooms', min_value=min_dict['bathrooms'], max_value=max_dict['bathrooms'], value=2)
|