Spaces:
Running
Running
Update new_app.py
Browse files- new_app.py +2 -2
new_app.py
CHANGED
|
@@ -99,10 +99,10 @@ with col3:
|
|
| 99 |
with st.form("coords_form"):
|
| 100 |
c1, c2 = st.columns(2)
|
| 101 |
with c1:
|
| 102 |
-
st.number_input('Latitude', key="lat",
|
| 103 |
st.write('The current lat/long are:')
|
| 104 |
with c2:
|
| 105 |
-
st.number_input('Longitude', key="lng",
|
| 106 |
st.write(f"{st.session_state.lat:.2f}, {st.session_state.lng:.2f}")
|
| 107 |
submitted = st.form_submit_button("Get Image and Prediction")
|
| 108 |
|
|
|
|
| 99 |
with st.form("coords_form"):
|
| 100 |
c1, c2 = st.columns(2)
|
| 101 |
with c1:
|
| 102 |
+
st.number_input('Latitude', key="lat", min_value=-90.0, max_value=90.0, step=0.01, format="%.2f")
|
| 103 |
st.write('The current lat/long are:')
|
| 104 |
with c2:
|
| 105 |
+
st.number_input('Longitude', key="lng", min_value=-180.0, max_value=180.0, step=0.01, format="%.2f")
|
| 106 |
st.write(f"{st.session_state.lat:.2f}, {st.session_state.lng:.2f}")
|
| 107 |
submitted = st.form_submit_button("Get Image and Prediction")
|
| 108 |
|