varshitha22 commited on
Commit
52c298b
·
verified ·
1 Parent(s): 745df01

Update pages/Recommendations.py

Browse files
Files changed (1) hide show
  1. pages/Recommendations.py +1 -1
pages/Recommendations.py CHANGED
@@ -7,7 +7,7 @@ df = pd.read_csv("https://huggingface.co/spaces/varshitha22/Crop_Recommendation/
7
  st.markdown("<h2 style='color: #D35400; font-size: 23px;'> 🌱 Seasonal Crop Guide</h2>", unsafe_allow_html=True)
8
 
9
  # Define conditions for each season
10
- summer_conditions = (df["Temperature"].between(20, 40)) & (df["Rainfall"].between(50, 200)) & (df["Humidity"].between(40, 70))
11
  rainy_conditions = (df["Temperature"].between(20, 30)) & (df["Rainfall"] > 200) & (df["Humidity"].between(65, 95))
12
  winter_conditions = (df["Temperature"].between(10, 20)) & (df["Rainfall"] < 150) & (df["Humidity"].between(30, 70))
13
 
 
7
  st.markdown("<h2 style='color: #D35400; font-size: 23px;'> 🌱 Seasonal Crop Guide</h2>", unsafe_allow_html=True)
8
 
9
  # Define conditions for each season
10
+ summer_conditions = (df["Temperature"].between(20, 50)) & (df["Rainfall"].between(50, 200)) & (df["Humidity"].between(40, 70))
11
  rainy_conditions = (df["Temperature"].between(20, 30)) & (df["Rainfall"] > 200) & (df["Humidity"].between(65, 95))
12
  winter_conditions = (df["Temperature"].between(10, 20)) & (df["Rainfall"] < 150) & (df["Humidity"].between(30, 70))
13