mailboxlab11 commited on
Commit
19b1e91
Β·
verified Β·
1 Parent(s): c730b12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -46,7 +46,7 @@ with st.form("weather_form"):
46
  with col1:
47
  temp = st.slider("🌑 Temperature (Β°C)", min_value=0.0, max_value=60.0, value=30.0)
48
  humidity = st.slider("πŸ’§ Humidity (%)", min_value=0, max_value=100, value=60)
49
- pressure = st.slider("πŸ”΅ Air Pressure (kPa)", min_value=870.0, max_value=1085.0, value=1005.0)
50
 
51
  with col2:
52
  wind_speed = st.slider("🌬 Wind Speed (m/s)", min_value=0.0, max_value=100.0, value=5.0)
@@ -58,7 +58,6 @@ with st.form("weather_form"):
58
 
59
  submitted = st.form_submit_button("βœ… Submit and Predict")
60
 
61
-
62
  # --- Process Input ---
63
  if submitted:
64
  # Calculate the next day based on the entry date
 
46
  with col1:
47
  temp = st.slider("🌑 Temperature (Β°C)", min_value=0.0, max_value=60.0, value=30.0)
48
  humidity = st.slider("πŸ’§ Humidity (%)", min_value=0, max_value=100, value=60)
49
+ pressure = st.slider("πŸ”΅ Air Pressure (kPa)", min_value=0.0, max_value=5000.0, value=1000.0) # Custom scale
50
 
51
  with col2:
52
  wind_speed = st.slider("🌬 Wind Speed (m/s)", min_value=0.0, max_value=100.0, value=5.0)
 
58
 
59
  submitted = st.form_submit_button("βœ… Submit and Predict")
60
 
 
61
  # --- Process Input ---
62
  if submitted:
63
  # Calculate the next day based on the entry date