final changes to the ui

This commit is contained in:
Nicolò 2025-08-02 12:10:08 +02:00
parent a0d4476350
commit 3418324060

15
app.py
View file

@ -69,7 +69,6 @@ elif plant_input_mode == "Upload image":
col1, col2 = st.columns(2)
with col1:
st.markdown("<h3 style='text-align: center;'>Environmental Parameters</h3>", unsafe_allow_html=True)
st.markdown("<h3 style='text-align: center;'>Environmental Parameters</h3>", unsafe_allow_html=True)
soil_options = ["Sandy", "Clay", "Loamy", "Peaty", "Chalky", "Silty"]
@ -78,7 +77,6 @@ with col1:
water_frequency = st.slider("Water Frequency (times per week)", 0, 14, 3)
with col2:
st.markdown("---")
st.markdown("---")
fertilizer_options = ["Organic", "Chemical", "None"]
@ -87,10 +85,6 @@ with col2:
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)
@ -116,15 +110,6 @@ if plant_type and plant_type.strip() != "":
manipulated_img = generate_image(plant_type, description, plant_age)
st.image(manipulated_img, caption="Predicted Plant Condition Image")
# else:
# st.warning("Please select or enter a plant type.")
manipulated_img = generate_image(plant_type, description, plant_age)
st.image(manipulated_img, caption="Predicted Plant Condition Image")
# else:
# st.warning("Please select or enter a plant type.")
st.markdown("---")