mbar0075 commited on
Commit
cb6a4a8
1 Parent(s): 952a171

Changed Grid Size

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -81,7 +81,7 @@ def process_image(
81
  GRIDSIZE: int,
82
  ) -> Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]:
83
  # Validate GRID_SIZE
84
- if GRIDSIZE is None and GRIDSIZE < 4:
85
  GRIDSIZE = 9
86
 
87
  itti_saliency_map, itti_heatmap = detect_and_annotate(
@@ -100,8 +100,8 @@ def process_image(
100
  )
101
 
102
  grid_size_Component = gr.Slider(
103
- minimum=4,
104
- maximum=70,
105
  value=32,
106
  step=1,
107
  label="Grid Size",
 
81
  GRIDSIZE: int,
82
  ) -> Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]:
83
  # Validate GRID_SIZE
84
+ if GRIDSIZE is None or GRIDSIZE < 3:
85
  GRIDSIZE = 9
86
 
87
  itti_saliency_map, itti_heatmap = detect_and_annotate(
 
100
  )
101
 
102
  grid_size_Component = gr.Slider(
103
+ minimum=3,
104
+ maximum=100,
105
  value=32,
106
  step=1,
107
  label="Grid Size",