Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -312,17 +312,17 @@ def main():
|
|
| 312 |
|
| 313 |
|
| 314 |
with weather_col1:
|
| 315 |
-
st.
|
| 316 |
-
st.
|
| 317 |
-
st.
|
| 318 |
-
st.
|
| 319 |
-
st.
|
| 320 |
|
| 321 |
with weather_col2:
|
| 322 |
-
st.
|
| 323 |
-
st.
|
| 324 |
-
#st.
|
| 325 |
-
st.
|
| 326 |
# Display sunrise and sunset times
|
| 327 |
st.write(f"**Sunrise:** {sunrise_time}")
|
| 328 |
st.write(f"**Sunset:** {sunset_time}")
|
|
@@ -546,12 +546,12 @@ def main():
|
|
| 546 |
stats_col1, stats_col2 = st.columns(2)
|
| 547 |
|
| 548 |
with stats_col1:
|
| 549 |
-
st.
|
| 550 |
-
st.
|
| 551 |
|
| 552 |
with stats_col2:
|
| 553 |
-
st.
|
| 554 |
-
st.
|
| 555 |
|
| 556 |
st.markdown("---")
|
| 557 |
|
|
@@ -625,12 +625,12 @@ def main():
|
|
| 625 |
col1, col2 = st.columns(2)
|
| 626 |
|
| 627 |
with col1:
|
| 628 |
-
st.
|
| 629 |
-
st.
|
| 630 |
|
| 631 |
with col2:
|
| 632 |
-
st.
|
| 633 |
-
st.
|
| 634 |
|
| 635 |
elif data_source == "Fish Categories Data":
|
| 636 |
st.header("🐟 Fish Categires Data")
|
|
|
|
| 312 |
|
| 313 |
|
| 314 |
with weather_col1:
|
| 315 |
+
st.metric("Temperature", f"{current['temp']}°F")
|
| 316 |
+
st.metric("Feels Like", f"{current['feels_like']}°F")
|
| 317 |
+
st.metric("Humidity", f"{current['humidity']}%")
|
| 318 |
+
st.metric("Pressure", f"{current['pressure']} in")
|
| 319 |
+
st.metric("Dew Point", f"{current['dew_point']} °F")
|
| 320 |
|
| 321 |
with weather_col2:
|
| 322 |
+
st.metric("Wind Speed", f"{current['wind_speed']} mph")
|
| 323 |
+
st.metric("Wind Direction", f"{current['wind_deg']}Rad")
|
| 324 |
+
#st.metric("UV Index", f"{current['uvi']}")
|
| 325 |
+
st.metric("Cloud Cover", f"{current.get('clouds', 'N/A')}%")
|
| 326 |
# Display sunrise and sunset times
|
| 327 |
st.write(f"**Sunrise:** {sunrise_time}")
|
| 328 |
st.write(f"**Sunset:** {sunset_time}")
|
|
|
|
| 546 |
stats_col1, stats_col2 = st.columns(2)
|
| 547 |
|
| 548 |
with stats_col1:
|
| 549 |
+
st.metric("Min", f"{sg_df[avg_col].min():.2f}")
|
| 550 |
+
st.metric("Max", f"{sg_df[avg_col].max():.2f}")
|
| 551 |
|
| 552 |
with stats_col2:
|
| 553 |
+
st.metric("Mean", f"{sg_df[avg_col].mean():.2f}")
|
| 554 |
+
st.metric("Median", f"{sg_df[avg_col].median():.2f}")
|
| 555 |
|
| 556 |
st.markdown("---")
|
| 557 |
|
|
|
|
| 625 |
col1, col2 = st.columns(2)
|
| 626 |
|
| 627 |
with col1:
|
| 628 |
+
st.metric("Sunrise", astro_data.get('sunrise', 'N/A'))
|
| 629 |
+
st.metric("Solar Noon", astro_data.get('solarNoon', 'N/A'))
|
| 630 |
|
| 631 |
with col2:
|
| 632 |
+
st.metric("Sunset", astro_data.get('sunset', 'N/A'))
|
| 633 |
+
st.metric("Day Length", astro_data.get('dayLength', 'N/A'))
|
| 634 |
|
| 635 |
elif data_source == "Fish Categories Data":
|
| 636 |
st.header("🐟 Fish Categires Data")
|