Spaces:
Sleeping
Sleeping
small bug fix
Browse files
app.py
CHANGED
@@ -16,13 +16,13 @@ if file_url:
|
|
16 |
st.toast("Using cached data")
|
17 |
input_gdf = st.session_state.input_gdf
|
18 |
else:
|
|
|
19 |
if file_url.startswith("https://drive.google.com/file/d/"):
|
20 |
ID = file_url.replace("https://drive.google.com/file/d/", "").split("/")[0]
|
21 |
file_url = f"https://drive.google.com/uc?id={ID}"
|
22 |
|
23 |
input_gdf = gpd.read_file(file_url)
|
24 |
input_gdf = input_gdf.to_crs(epsg=7761) # Gujarat zone
|
25 |
-
st.session_state.file_url = file_url
|
26 |
st.session_state.input_gdf = input_gdf
|
27 |
st.toast("Data loaded and cached")
|
28 |
|
|
|
16 |
st.toast("Using cached data")
|
17 |
input_gdf = st.session_state.input_gdf
|
18 |
else:
|
19 |
+
st.session_state.file_url = file_url
|
20 |
if file_url.startswith("https://drive.google.com/file/d/"):
|
21 |
ID = file_url.replace("https://drive.google.com/file/d/", "").split("/")[0]
|
22 |
file_url = f"https://drive.google.com/uc?id={ID}"
|
23 |
|
24 |
input_gdf = gpd.read_file(file_url)
|
25 |
input_gdf = input_gdf.to_crs(epsg=7761) # Gujarat zone
|
|
|
26 |
st.session_state.input_gdf = input_gdf
|
27 |
st.toast("Data loaded and cached")
|
28 |
|