Spaces:
Runtime error
Runtime error
Commit
·
09edb35
1
Parent(s):
69b90e4
ui
Browse files- biomap/streamlit_app.py +16 -8
biomap/streamlit_app.py
CHANGED
@@ -57,8 +57,7 @@ def app(model):
|
|
57 |
|
58 |
st.markdown("<h1 style='text-align: center;'>🐢 Biomap by Ekimetrics 🐢</h1>", unsafe_allow_html=True)
|
59 |
st.markdown("<h2 style='text-align: center;'>Estimate Biodiversity score in the world with the help of land cover.</h2>", unsafe_allow_html=True)
|
60 |
-
st.markdown("<p style='text-align: center;'>The segmentation is an association of UNet and DinoV1 trained on the dataset CORINE
|
61 |
-
st.markdown("<p style='text-align: center;'>Land use is divided into 6 differents classes :Each class is assigned a GBS score from 0 to 1</p>", unsafe_allow_html=True)
|
62 |
st.markdown("<p style='text-align: center;'>Buildings : 0.1 | Infrastructure : 0.1 | Cultivation : 0.4 | Wetland : 0.9 | Water : 0.9 | Natural green : 1 </p>", unsafe_allow_html=True)
|
63 |
st.markdown("<p style='text-align: center;'>The score is then average on the full image.</p>", unsafe_allow_html=True)
|
64 |
|
@@ -78,20 +77,29 @@ def app(model):
|
|
78 |
with col_2:
|
79 |
tabs1, tabs2 = st.tabs(["TimeLapse", "Single Image"])
|
80 |
with tabs1:
|
81 |
-
|
82 |
-
|
|
|
|
|
|
|
83 |
|
|
|
84 |
years = list(range(MIN_YEAR, MAX_YEAR, 1))
|
85 |
-
|
|
|
86 |
|
87 |
end_years = [year for year in years if year > start_date]
|
88 |
-
|
|
|
89 |
|
90 |
segment_interval = st.radio("Interval of time between two segmentation", options=['month','2months', 'year'],horizontal=True)
|
91 |
submit = st.button("Predict TimeLapse", use_container_width=True)
|
92 |
with tabs2:
|
93 |
-
|
94 |
-
|
|
|
|
|
|
|
95 |
|
96 |
date = st.text_input("date", "2021-01-01", placeholder="2021-01-01")
|
97 |
|
|
|
57 |
|
58 |
st.markdown("<h1 style='text-align: center;'>🐢 Biomap by Ekimetrics 🐢</h1>", unsafe_allow_html=True)
|
59 |
st.markdown("<h2 style='text-align: center;'>Estimate Biodiversity score in the world with the help of land cover.</h2>", unsafe_allow_html=True)
|
60 |
+
st.markdown("<p style='text-align: center;'>The segmentation model is an association of UNet and DinoV1 trained on the dataset CORINE. Land use is divided into 6 differents classes :Each class is assigned a GBS score from 0 to 1</p>", unsafe_allow_html=True)
|
|
|
61 |
st.markdown("<p style='text-align: center;'>Buildings : 0.1 | Infrastructure : 0.1 | Cultivation : 0.4 | Wetland : 0.9 | Water : 0.9 | Natural green : 1 </p>", unsafe_allow_html=True)
|
62 |
st.markdown("<p style='text-align: center;'>The score is then average on the full image.</p>", unsafe_allow_html=True)
|
63 |
|
|
|
77 |
with col_2:
|
78 |
tabs1, tabs2 = st.tabs(["TimeLapse", "Single Image"])
|
79 |
with tabs1:
|
80 |
+
col_tab1_1, col_tab1_2 = st.columns(2)
|
81 |
+
with col_tab1_1:
|
82 |
+
lat = st.text_input("lattitude", value=selected_latitude)
|
83 |
+
with col_tab1_2:
|
84 |
+
long = st.text_input("longitude", value=selected_longitude)
|
85 |
|
86 |
+
col_tab1_11, col_tab1_22 = st.columns(2)
|
87 |
years = list(range(MIN_YEAR, MAX_YEAR, 1))
|
88 |
+
with col_tab1_11:
|
89 |
+
start_date = st.selectbox("Start date", years)
|
90 |
|
91 |
end_years = [year for year in years if year > start_date]
|
92 |
+
with col_tab1_22:
|
93 |
+
end_date = st.selectbox("End date", end_years)
|
94 |
|
95 |
segment_interval = st.radio("Interval of time between two segmentation", options=['month','2months', 'year'],horizontal=True)
|
96 |
submit = st.button("Predict TimeLapse", use_container_width=True)
|
97 |
with tabs2:
|
98 |
+
col_tab2_1, col_tab2_2 = st.columns(2)
|
99 |
+
with col_tab2_1:
|
100 |
+
lat = st.text_input("lat.", value=selected_latitude)
|
101 |
+
with col_tab2_2:
|
102 |
+
long = st.text_input("long.", value=selected_longitude)
|
103 |
|
104 |
date = st.text_input("date", "2021-01-01", placeholder="2021-01-01")
|
105 |
|