Zeel commited on
Commit
45c1420
·
1 Parent(s): b90f50d

add stopper if no file

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -38,6 +38,8 @@ if not file_url:
38
  )
39
  file_url = st.file_uploader("Upload KML/GeoJSON file", type=["geojson", "kml", "shp"])
40
 
 
 
41
 
42
  if ("file_url" in st.session_state) and (st.session_state.file_url == file_url):
43
  # st.toast("Using cached data")
 
38
  )
39
  file_url = st.file_uploader("Upload KML/GeoJSON file", type=["geojson", "kml", "shp"])
40
 
41
+ if not file_url:
42
+ st.stop()
43
 
44
  if ("file_url" in st.session_state) and (st.session_state.file_url == file_url):
45
  # st.toast("Using cached data")