Spaces:
Runtime error
Runtime error
Commit
·
3f2f80d
1
Parent(s):
7026a1b
ui
Browse files- biomap/streamlit_app.py +2 -5
biomap/streamlit_app.py
CHANGED
@@ -61,8 +61,9 @@ def app(model):
|
|
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 |
-
|
65 |
|
|
|
|
|
66 |
|
67 |
col_1, col_2 = st.columns([0.5,0.5])
|
68 |
with col_1:
|
@@ -114,10 +115,6 @@ def app(model):
|
|
114 |
fig = inference_on_location_and_month(model, lat, long, date)
|
115 |
st.session_state["infered"] = True
|
116 |
st.session_state["previous_fig"] = fig
|
117 |
-
|
118 |
-
if st.session_state["infered"]:
|
119 |
-
st.plotly_chart(st.session_state["previous_fig"], use_container_width=True)
|
120 |
-
|
121 |
|
122 |
|
123 |
if __name__ == "__main__":
|
|
|
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 |
|
65 |
+
if st.session_state["infered"]:
|
66 |
+
st.plotly_chart(st.session_state["previous_fig"], use_container_width=True)
|
67 |
|
68 |
col_1, col_2 = st.columns([0.5,0.5])
|
69 |
with col_1:
|
|
|
115 |
fig = inference_on_location_and_month(model, lat, long, date)
|
116 |
st.session_state["infered"] = True
|
117 |
st.session_state["previous_fig"] = fig
|
|
|
|
|
|
|
|
|
118 |
|
119 |
|
120 |
if __name__ == "__main__":
|