Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 90 |
-
lat_max = st.number_input("Latitude Max", value=89.
|
| 91 |
-
lon_min = st.number_input("Longitude Min", value=90.78, step=0.
|
| 92 |
-
lon_max = st.number_input("Longitude Max", value=90.80, step=0.
|
| 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=
|
| 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"):
|