aromidvar1355 commited on
Commit
68e35c2
·
verified ·
1 Parent(s): d98eafe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -17
app.py CHANGED
@@ -312,17 +312,17 @@ def main():
312
 
313
 
314
  with weather_col1:
315
- st.imperial("Temperature", f"{current['temp']}°F")
316
- st.imperial("Feels Like", f"{current['feels_like']}°F")
317
- st.imperial("Humidity", f"{current['humidity']}%")
318
- st.imperial("Pressure", f"{current['pressure']} in")
319
- st.imperial("Dew Point", f"{current['dew_point']} °F")
320
 
321
  with weather_col2:
322
- st.imperial("Wind Speed", f"{current['wind_speed']} mph")
323
- st.imperial("Wind Direction", f"{current['wind_deg']}Rad")
324
- #st.imperial("UV Index", f"{current['uvi']}")
325
- st.imperial("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,12 +546,12 @@ def main():
546
  stats_col1, stats_col2 = st.columns(2)
547
 
548
  with stats_col1:
549
- st.imperial("Min", f"{sg_df[avg_col].min():.2f}")
550
- st.imperial("Max", f"{sg_df[avg_col].max():.2f}")
551
 
552
  with stats_col2:
553
- st.imperial("Mean", f"{sg_df[avg_col].mean():.2f}")
554
- st.imperial("Median", f"{sg_df[avg_col].median():.2f}")
555
 
556
  st.markdown("---")
557
 
@@ -625,12 +625,12 @@ def main():
625
  col1, col2 = st.columns(2)
626
 
627
  with col1:
628
- st.imperial("Sunrise", astro_data.get('sunrise', 'N/A'))
629
- st.imperial("Solar Noon", astro_data.get('solarNoon', 'N/A'))
630
 
631
  with col2:
632
- st.imperial("Sunset", astro_data.get('sunset', 'N/A'))
633
- st.imperial("Day Length", astro_data.get('dayLength', 'N/A'))
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")