Harsh-7300 commited on
Commit
42c8e1b
·
verified ·
1 Parent(s): 608a39b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -86,15 +86,15 @@ st.write("Upload a rooftop image to calculate the usable area for solar panels,
86
  uploaded_file = st.file_uploader("Upload an image (PNG or JPG)", type=["png", "jpg", "jpeg"])
87
 
88
  # Input fields for geographic bounds with default values
89
- lat_min = st.number_input("Latitude Min", value=89.36, step=0.0001)
90
- lat_max = st.number_input("Latitude Max", value=89.37, step=0.0001)
91
- lon_min = st.number_input("Longitude Min", value=90.78, step=0.0001)
92
- lon_max = st.number_input("Longitude Max", value=90.80, step=0.0001)
93
 
94
  # Input fields for irradiance, panel efficiency, and sunlight hours
95
  irradiance = st.number_input("Irradiance (W/m²)", value=200, step=1) # Default irradiance value (W/m²)
96
  panel_efficiency = st.number_input("Panel Efficiency (%)", value=18, step=1) / 100 # Default efficiency (18%)
97
- sunlight_hours = st.number_input("Sunlight Hours per Day", value=5, step=1) # Default 5 hours of sunlight
98
 
99
  # Button to process the image
100
  if st.button("Calculate Usable Area and Energy Potential"):
 
86
  uploaded_file = st.file_uploader("Upload an image (PNG or JPG)", type=["png", "jpg", "jpeg"])
87
 
88
  # Input fields for geographic bounds with default values
89
+ lat_min = st.number_input("Latitude Min", value=89.67, step=0.01)
90
+ lat_max = st.number_input("Latitude Max", value=89.68, step=0.01)
91
+ lon_min = st.number_input("Longitude Min", value=90.78, step=0.01)
92
+ lon_max = st.number_input("Longitude Max", value=90.80, step=0.01)
93
 
94
  # Input fields for irradiance, panel efficiency, and sunlight hours
95
  irradiance = st.number_input("Irradiance (W/m²)", value=200, step=1) # Default irradiance value (W/m²)
96
  panel_efficiency = st.number_input("Panel Efficiency (%)", value=18, step=1) / 100 # Default efficiency (18%)
97
+ sunlight_hours = st.number_input("Sunlight Hours per Day", value=7, step=1) # Default 5 hours of sunlight
98
 
99
  # Button to process the image
100
  if st.button("Calculate Usable Area and Energy Potential"):