Files changed (2) hide show
  1. app.py +2 -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 cover.classify import add_classifications
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 @ git+https://github.com/Imageomics/LatLonCover.git
 
1
  streamlit
2
  pandas
3
+ latloncover