dilithjay commited on
Commit
9ea8ec2
·
1 Parent(s): 006a8c3

Remove show mask checkbox

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -20,13 +20,13 @@ OUT_DIR = "out/"
20
 
21
  def gr_generate_map(
22
  side_len: str,
23
- show_mask: bool,
24
  show_hospitals: bool = True,
25
  show_police: bool = True,
26
  region: str = "None",
27
  ):
28
  token = "pk.eyJ1IjoiZGlsaXRoIiwiYSI6ImNsaTZ3b3I4MjF6MmczZG80cXBmeTgyaGsifQ.JmrU3qbp2jlK_9Yl2il8pw"
29
  side_len = float(side_len)
 
30
 
31
  scattermaps = []
32
  grid_path = MASK_PATH[: -len(".shp")] + f"-gap={side_len}.shp"
@@ -170,7 +170,6 @@ with gr.Blocks() as demo:
170
  with gr.Tab("Sampling"):
171
  grid_side_len = gr.Textbox(value="100", label="Sampling Gap (m)")
172
 
173
- grid_show_mask = gr.Checkbox(False, label="Show Mask")
174
  grid_show_hosp = gr.Checkbox(True, label="Show Hospitals")
175
  grid_show_police = gr.Checkbox(True, label="Show Police Stations")
176
 
@@ -197,7 +196,7 @@ with gr.Blocks() as demo:
197
 
198
  grid_button.click(
199
  gr_generate_map,
200
- inputs=[grid_side_len, grid_show_mask],
201
  outputs=[grid_map, grid_shapefile, grid_point_info, grid_point_table],
202
  )
203
 
@@ -205,7 +204,6 @@ with gr.Blocks() as demo:
205
  gr_generate_map,
206
  inputs=[
207
  grid_side_len,
208
- grid_show_mask,
209
  grid_show_hosp,
210
  grid_show_police,
211
  grid_region,
 
20
 
21
  def gr_generate_map(
22
  side_len: str,
 
23
  show_hospitals: bool = True,
24
  show_police: bool = True,
25
  region: str = "None",
26
  ):
27
  token = "pk.eyJ1IjoiZGlsaXRoIiwiYSI6ImNsaTZ3b3I4MjF6MmczZG80cXBmeTgyaGsifQ.JmrU3qbp2jlK_9Yl2il8pw"
28
  side_len = float(side_len)
29
+ show_mask = False
30
 
31
  scattermaps = []
32
  grid_path = MASK_PATH[: -len(".shp")] + f"-gap={side_len}.shp"
 
170
  with gr.Tab("Sampling"):
171
  grid_side_len = gr.Textbox(value="100", label="Sampling Gap (m)")
172
 
 
173
  grid_show_hosp = gr.Checkbox(True, label="Show Hospitals")
174
  grid_show_police = gr.Checkbox(True, label="Show Police Stations")
175
 
 
196
 
197
  grid_button.click(
198
  gr_generate_map,
199
+ inputs=[grid_side_len],
200
  outputs=[grid_map, grid_shapefile, grid_point_info, grid_point_table],
201
  )
202
 
 
204
  gr_generate_map,
205
  inputs=[
206
  grid_side_len,
 
207
  grid_show_hosp,
208
  grid_show_police,
209
  grid_region,