Aggiorna app.py
This commit is contained in:
parent
46053885ba
commit
6a392827c1
1 changed files with 108 additions and 106 deletions
4
app.py
4
app.py
|
@ -66,7 +66,7 @@ elif plant_input_mode == "Upload image":
|
||||||
col1, col2 = st.columns(2)
|
col1, col2 = st.columns(2)
|
||||||
|
|
||||||
with col1:
|
with col1:
|
||||||
st.header("Environmental Parameters")
|
st.markdown("<h3 style='text-align: center;'>Environmental Parameters</h3>", unsafe_allow_html=True)
|
||||||
soil_options = ["Sandy", "Clay", "Loamy", "Peaty", "Chalky", "Silty"]
|
soil_options = ["Sandy", "Clay", "Loamy", "Peaty", "Chalky", "Silty"]
|
||||||
|
|
||||||
soil_type = st.selectbox("Soil Type", soil_options)
|
soil_type = st.selectbox("Soil Type", soil_options)
|
||||||
|
@ -74,11 +74,13 @@ with col1:
|
||||||
water_frequency = st.slider("Water Frequency (times per week)", 0, 14, 3)
|
water_frequency = st.slider("Water Frequency (times per week)", 0, 14, 3)
|
||||||
|
|
||||||
with col2:
|
with col2:
|
||||||
|
st.markdown("---")
|
||||||
fertilizer_options = ["Organic", "Chemical", "None"]
|
fertilizer_options = ["Organic", "Chemical", "None"]
|
||||||
|
|
||||||
fertilizer_type = st.selectbox("Fertilizer Type", fertilizer_options)
|
fertilizer_type = st.selectbox("Fertilizer Type", fertilizer_options)
|
||||||
temperature = st.slider("Temperature (°C)", -10, 50, 22)
|
temperature = st.slider("Temperature (°C)", -10, 50, 22)
|
||||||
humidity = st.slider("Humidity (%)", 0, 100, 60)
|
humidity = st.slider("Humidity (%)", 0, 100, 60)
|
||||||
|
|
||||||
days = st.slider("Prediction Interval (in days)", min_value=1, max_value=30, value=7)
|
days = st.slider("Prediction Interval (in days)", min_value=1, max_value=30, value=7)
|
||||||
|
|
||||||
additional_info = st.text_area("Feel free to include any additional detail", "- e.g. 'I'm adding compost to the soil.'", height=100)
|
additional_info = st.text_area("Feel free to include any additional detail", "- e.g. 'I'm adding compost to the soil.'", height=100)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue