sree4411 commited on
Commit
ea328fc
·
verified ·
1 Parent(s): 13bb4c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -11,13 +11,13 @@ with open('weather_classifier_model.pkl', 'rb') as file:
11
  st.title("🌦️ Weather Prediction App")
12
 
13
  # Input features
14
- temperature = st.number_input("Temperature (°C)")
15
- humidity = st.number_input("Humidity (%)")
16
- wind_speed = st.number_input("Wind Speed (km/h)")
17
- cloud_cover = st.selectbox("Cloud Cover", ['partly cloudy', 'clear', 'overcast', 'cloudy'])
18
- precipitation = st.number_input("Precipitation (%)")
19
- uv_index = st.number_input("UV Index")
20
- visibility = st.number_input("Visibility (km)")
21
  season = st.selectbox("Season", ['Winter', 'Spring', 'Summer', 'Autumn']) # Updated season options
22
  location = st.selectbox("Location", ["inland", "mountain", "coastal"])
23
 
 
11
  st.title("🌦️ Weather Prediction App")
12
 
13
  # Input features
14
+ temperature = st.number_input("Temperature (°C)", min_value=-50.0, max_value=50.0, step=0.1)
15
+ humidity = st.number_input("Humidity (%)", min_value=0.0, max_value=100.0, step=0.1)
16
+ wind_speed = st.number_input("Wind Speed (km/h)"min_value=0, max_value=150, value=10)
17
+ cloud_cover = st.selectbox("Cloud Cover", ["Clear", "Partial", "Overcast"])
18
+ precipitation = st.number_input("Precipitation (%)",min_value=0, max_value=100, value=10))
19
+ uv_index = st.number_input("UV Index", min_value=0, max_value=15, value=5)
20
+ visibility = st.number_input("Visibility (km)",min_value=0, max_value=50, value=10)
21
  season = st.selectbox("Season", ['Winter', 'Spring', 'Summer', 'Autumn']) # Updated season options
22
  location = st.selectbox("Location", ["inland", "mountain", "coastal"])
23