mattritchey commited on
Commit
a52a988
·
1 Parent(s): 964a6ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -54,7 +54,7 @@ def map_folium(data, zoom=12):
54
  data, opacity=0.8, bounds=[[bottom, left], [top, right]]).add_to(m)
55
  return m
56
 
57
- # @st.cache_data
58
  def crop_hail_jpg_filter(f, crop_coords, scaling_factor=255):
59
  date = f[-19:-11]
60
  image = Image.open(f)
@@ -63,7 +63,7 @@ def crop_hail_jpg_filter(f, crop_coords, scaling_factor=255):
63
  if image.sum() > 0:
64
  return date, image
65
 
66
- # @st.cache_data
67
  def get_data(start_date,end_date,crop_coords):
68
  files = glob.glob('png/2022/**/*.png', recursive=True)
69
 
 
54
  data, opacity=0.8, bounds=[[bottom, left], [top, right]]).add_to(m)
55
  return m
56
 
57
+ @st.cache_data
58
  def crop_hail_jpg_filter(f, crop_coords, scaling_factor=255):
59
  date = f[-19:-11]
60
  image = Image.open(f)
 
63
  if image.sum() > 0:
64
  return date, image
65
 
66
+ @st.cache_data
67
  def get_data(start_date,end_date,crop_coords):
68
  files = glob.glob('png/2022/**/*.png', recursive=True)
69