YAMITEK commited on
Commit
4b83b02
·
verified ·
1 Parent(s): e7099c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,12 +50,12 @@ with st.form(key="my_form"):
50
  st.markdown("<h1 style='text-align: center; background-color: #f4edcd;color:black'>Crop Yield Prediction</h1>", unsafe_allow_html=True)
51
 
52
  crop = st.selectbox("Choose a Crop:", options=cropOptions)
53
- area = st.text_input("Area (in hectares):")
54
  area_error = "" if re.match(r"^\d+(\.\d+)?$", area) or not area else "Invalid input for area. Enter a numeric value without commas or special characters."
55
  if area_error:
56
  st.markdown(f"<span style='color:red;'>{area_error}</span>", unsafe_allow_html=True)
57
 
58
- production = st.text_input("Production (in metric tons):")
59
  production_error = "" if re.match(r"^\d+(\.\d+)?$", production) or not production else "Invalid input for production. Enter a numeric value without commas or special characters."
60
  if production_error:
61
  st.markdown(f"<span style='color:red;'>{production_error}</span>", unsafe_allow_html=True)
 
50
  st.markdown("<h1 style='text-align: center; background-color: #f4edcd;color:black'>Crop Yield Prediction</h1>", unsafe_allow_html=True)
51
 
52
  crop = st.selectbox("Choose a Crop:", options=cropOptions)
53
+ area = st.text_input("Enter the Area in numbers (in hectares):")
54
  area_error = "" if re.match(r"^\d+(\.\d+)?$", area) or not area else "Invalid input for area. Enter a numeric value without commas or special characters."
55
  if area_error:
56
  st.markdown(f"<span style='color:red;'>{area_error}</span>", unsafe_allow_html=True)
57
 
58
+ production = st.text_input(" Enter the Production in numbers (in metric tons):")
59
  production_error = "" if re.match(r"^\d+(\.\d+)?$", production) or not production else "Invalid input for production. Enter a numeric value without commas or special characters."
60
  if production_error:
61
  st.markdown(f"<span style='color:red;'>{production_error}</span>", unsafe_allow_html=True)