Spaces:
Sleeping
Sleeping
johnbradley
commited on
Commit
·
70db531
1
Parent(s):
4a4b65e
Add Process CSV button
Browse filesThis is to prevent re-processing the uploading CSV file when
a user clicks the download button.
app.py
CHANGED
@@ -18,7 +18,8 @@ with col2:
|
|
18 |
lon_col = st.text_input('Enter the longitude column name', 'Long')
|
19 |
|
20 |
uploaded_file = st.file_uploader("Choose a CSV file")
|
21 |
-
|
|
|
22 |
df = pd.read_csv(uploaded_file)
|
23 |
|
24 |
with st.spinner('Fetching land coverage data...'):
|
|
|
18 |
lon_col = st.text_input('Enter the longitude column name', 'Long')
|
19 |
|
20 |
uploaded_file = st.file_uploader("Choose a CSV file")
|
21 |
+
|
22 |
+
if st.button('Process CSV') and uploaded_file is not None:
|
23 |
df = pd.read_csv(uploaded_file)
|
24 |
|
25 |
with st.spinner('Fetching land coverage data...'):
|