fschwartzer commited on
Commit
ebd08fd
·
1 Parent(s): ab64c26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -156,11 +156,13 @@ with st.sidebar:
156
  if radius_visible:
157
  radius_in_meters = st.slider('Selecione raio (em metros)', min_value=100, max_value=5000, value=1000)
158
 
159
- # Initialize sliders variables
160
  dorm_range = (int(data_tipo['Dorm'].min()), int(data_tipo['Dorm'].max()))
161
  banho_range = (int(data_tipo['Banh'].min()), int(data_tipo['Banh'].max()))
162
  vaga_range = (int(data_tipo['Vaga'].min()), int(data_tipo['Vaga'].max()))
163
  test_range = (int(data_tipo['Test'].min()), int(data_tipo['Test'].max()))
 
 
164
 
165
  # Add sliders to filter data based
166
  atotal_range = st.slider('Área Total', float(data_tipo['Atotal'].min()), float(data_tipo['Atotal'].max()), (float(data_tipo['Atotal'].min()), float(data_tipo['Atotal'].max())), step=.1 if data_tipo['Atotal'].min() != data_tipo['Atotal'].max() else 0.1)
@@ -174,12 +176,6 @@ with st.sidebar:
174
  vaga_range = st.slider('Vaga de estacionamento', int(data_tipo['Vaga'].min()), int(data_tipo['Vaga'].max()), (int(data_tipo['Vaga'].min()), int(data_tipo['Vaga'].max())), step=1 if data_tipo['Vaga'].min() != data_tipo['Vaga'].max() else 1)
175
  if int(data_tipo['Test'].min()) != 0 and int(data_tipo['Test'].max()) != 0:
176
  test_range = st.slider('Testada', int(data_tipo['Test'].min()), int(data_tipo['Test'].max()), (int(data_tipo['Test'].min()), int(data_tipo['Test'].max())), step=1 if data_tipo['Test'].min() != data_tipo['Test'].max() else 1)
177
-
178
- # Initialize checkbox variables
179
- elev_checkbox = False
180
- esq_checkbox = False
181
-
182
- # Add checkboxes for dummy features
183
  if int(data_tipo['Elevador'].min()) != 0 and int(data_tipo['Elevador'].max()) != 0:
184
  elev_checkbox = st.checkbox('Elevador')
185
  if int(data_tipo['Lot_pos'].min()) != 0 and int(data_tipo['Lot_pos'].max()) != 0:
 
156
  if radius_visible:
157
  radius_in_meters = st.slider('Selecione raio (em metros)', min_value=100, max_value=5000, value=1000)
158
 
159
+ # Initialize variables
160
  dorm_range = (int(data_tipo['Dorm'].min()), int(data_tipo['Dorm'].max()))
161
  banho_range = (int(data_tipo['Banh'].min()), int(data_tipo['Banh'].max()))
162
  vaga_range = (int(data_tipo['Vaga'].min()), int(data_tipo['Vaga'].max()))
163
  test_range = (int(data_tipo['Test'].min()), int(data_tipo['Test'].max()))
164
+ elev_checkbox = True
165
+ esq_checkbox = True
166
 
167
  # Add sliders to filter data based
168
  atotal_range = st.slider('Área Total', float(data_tipo['Atotal'].min()), float(data_tipo['Atotal'].max()), (float(data_tipo['Atotal'].min()), float(data_tipo['Atotal'].max())), step=.1 if data_tipo['Atotal'].min() != data_tipo['Atotal'].max() else 0.1)
 
176
  vaga_range = st.slider('Vaga de estacionamento', int(data_tipo['Vaga'].min()), int(data_tipo['Vaga'].max()), (int(data_tipo['Vaga'].min()), int(data_tipo['Vaga'].max())), step=1 if data_tipo['Vaga'].min() != data_tipo['Vaga'].max() else 1)
177
  if int(data_tipo['Test'].min()) != 0 and int(data_tipo['Test'].max()) != 0:
178
  test_range = st.slider('Testada', int(data_tipo['Test'].min()), int(data_tipo['Test'].max()), (int(data_tipo['Test'].min()), int(data_tipo['Test'].max())), step=1 if data_tipo['Test'].min() != data_tipo['Test'].max() else 1)
 
 
 
 
 
 
179
  if int(data_tipo['Elevador'].min()) != 0 and int(data_tipo['Elevador'].max()) != 0:
180
  elev_checkbox = st.checkbox('Elevador')
181
  if int(data_tipo['Lot_pos'].min()) != 0 and int(data_tipo['Lot_pos'].max()) != 0: