RMHalak commited on
Commit
0a6e3ff
·
verified ·
1 Parent(s): 86120d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -64,7 +64,8 @@ with col1:
64
  'North Bend', 'Pacific', 'Preston', 'Ravensdale', 'Redmond',
65
  'Renton', 'Sammamish', 'SeaTac', 'Seattle', 'Shoreline',
66
  'Skykomish', 'Snoqualmie', 'Snoqualmie Pass', 'Tukwila', 'Vashon',
67
- 'Woodinville', 'Yarrow Point']
 
68
  )
69
 
70
  # Create sliders for each item in the dictionaries
@@ -73,7 +74,7 @@ with col1:
73
  sqft_living = st.slider('Square Feet (Living)', min_value=min_dict['sqft_living'], max_value=max_dict['sqft_living'], value=min_dict['sqft_living'])
74
  sqft_lot = st.slider('Square Feet (Lot)', min_value=min_dict['sqft_lot'], max_value=max_dict['sqft_lot'], value=min_dict['sqft_lot'])
75
  floors = st.slider('Floors', min_value=min_dict['floors'], max_value=max_dict['floors'], value=min_dict['floors'])
76
- waterfront = st.checkbox('Waterfront', value=False)
77
  view = st.slider('View', min_value=min_dict['view'], max_value=max_dict['view'], value=min_dict['view'])
78
  condition = st.slider('Condition', min_value=min_dict['condition'], max_value=max_dict['condition'], value=min_dict['condition'])
79
  sqft_above = st.slider('Square Feet (Above)', min_value=min_dict['sqft_above'], max_value=max_dict['sqft_above'], value=min_dict['sqft_above'])
@@ -81,12 +82,13 @@ with col1:
81
  yr_built = st.slider('Year Built', min_value=min_dict['yr_built'], max_value=max_dict['yr_built'], value=min_dict['yr_built'])
82
  yr_renovated = st.slider('Year Renovated', min_value=min_dict['yr_renovated'], max_value=max_dict['yr_renovated'], value=min_dict['yr_renovated'])
83
 
84
- if (bedrooms != min_dict['bedrooms'] or
 
85
  bathrooms != min_dict['bathrooms'] or
86
  sqft_living != min_dict['sqft_living'] or
87
  sqft_lot != min_dict['sqft_lot'] or
88
  floors != min_dict['floors'] or
89
- # waterfront != min_dict['waterfront'] or
90
  view != min_dict['view'] or
91
  condition != min_dict['condition'] or
92
  sqft_above != min_dict['sqft_above'] or
@@ -119,7 +121,6 @@ with col1:
119
 
120
  # Display the map in the second column
121
  with col2:
122
- if ()
123
  st.subheader('Map')
124
  data = pd.DataFrame({
125
  'latitude': [47.6097, 47.6205, 47.6762], # Example latitudes
 
64
  'North Bend', 'Pacific', 'Preston', 'Ravensdale', 'Redmond',
65
  'Renton', 'Sammamish', 'SeaTac', 'Seattle', 'Shoreline',
66
  'Skykomish', 'Snoqualmie', 'Snoqualmie Pass', 'Tukwila', 'Vashon',
67
+ 'Woodinville', 'Yarrow Point'],
68
+
69
  )
70
 
71
  # Create sliders for each item in the dictionaries
 
74
  sqft_living = st.slider('Square Feet (Living)', min_value=min_dict['sqft_living'], max_value=max_dict['sqft_living'], value=min_dict['sqft_living'])
75
  sqft_lot = st.slider('Square Feet (Lot)', min_value=min_dict['sqft_lot'], max_value=max_dict['sqft_lot'], value=min_dict['sqft_lot'])
76
  floors = st.slider('Floors', min_value=min_dict['floors'], max_value=max_dict['floors'], value=min_dict['floors'])
77
+ waterfront = st.checkbox('Waterfront', value=False, )
78
  view = st.slider('View', min_value=min_dict['view'], max_value=max_dict['view'], value=min_dict['view'])
79
  condition = st.slider('Condition', min_value=min_dict['condition'], max_value=max_dict['condition'], value=min_dict['condition'])
80
  sqft_above = st.slider('Square Feet (Above)', min_value=min_dict['sqft_above'], max_value=max_dict['sqft_above'], value=min_dict['sqft_above'])
 
82
  yr_built = st.slider('Year Built', min_value=min_dict['yr_built'], max_value=max_dict['yr_built'], value=min_dict['yr_built'])
83
  yr_renovated = st.slider('Year Renovated', min_value=min_dict['yr_renovated'], max_value=max_dict['yr_renovated'], value=min_dict['yr_renovated'])
84
 
85
+ if (city != 'Algona' or # Assuming Algona as the default value
86
+ bedrooms != min_dict['bedrooms'] or
87
  bathrooms != min_dict['bathrooms'] or
88
  sqft_living != min_dict['sqft_living'] or
89
  sqft_lot != min_dict['sqft_lot'] or
90
  floors != min_dict['floors'] or
91
+ int(waterfront) != 0 or # Assuming default value for waterfront is 0
92
  view != min_dict['view'] or
93
  condition != min_dict['condition'] or
94
  sqft_above != min_dict['sqft_above'] or
 
121
 
122
  # Display the map in the second column
123
  with col2:
 
124
  st.subheader('Map')
125
  data = pd.DataFrame({
126
  'latitude': [47.6097, 47.6205, 47.6762], # Example latitudes