Spaces:
Sleeping
Sleeping
johnbradley
commited on
Commit
·
b92e2a6
1
Parent(s):
f8840d7
fixpackage (#1)
Browse files- Use latloncover package name (a5a69f43858ca5b576454d0eafd4862be7cdc85e)
- Install latloncover from PyPI (f8da02b16ba870b2b3cfa862f1547b0c7ab7f683)
- app.py +2 -2
- requirements.txt +1 -1
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
-
from
|
4 |
|
5 |
st.title("LatLonCover Demo")
|
6 |
st.subheader('Add land coverage data to a CSV :sunglasses:')
|
@@ -23,7 +23,7 @@ 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...'):
|
26 |
-
add_classifications(df, lat_col=lat_col, lon_col=lon_col)
|
27 |
st.download_button('Download CSV', df.to_csv(index=False), file_name="LatLonCover.csv")
|
28 |
|
29 |
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
+
from latloncover.classify import add_classifications
|
4 |
|
5 |
st.title("LatLonCover Demo")
|
6 |
st.subheader('Add land coverage data to a CSV :sunglasses:')
|
|
|
23 |
df = pd.read_csv(uploaded_file)
|
24 |
|
25 |
with st.spinner('Fetching land coverage data...'):
|
26 |
+
df = add_classifications(df, lat_col=lat_col, lon_col=lon_col)
|
27 |
st.download_button('Download CSV', df.to_csv(index=False), file_name="LatLonCover.csv")
|
28 |
|
29 |
|
requirements.txt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
streamlit
|
2 |
pandas
|
3 |
-
latloncover
|
|
|
1 |
streamlit
|
2 |
pandas
|
3 |
+
latloncover
|