Spaces:
Sleeping
Sleeping
add stopper if no file
Browse files
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")
|