rehanafzal commited on
Commit
40e64d5
·
verified ·
1 Parent(s): 5201ecd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -497,7 +497,7 @@ if weather:
497
  st.sidebar.write(f"Weather: {weather['weather']}")
498
 
499
  # Tabs
500
- tab_home, tab_storage, tab_trading = st.tabs(["Home", "Storage", "Electricity Trade Management"])
501
 
502
  # Home Tab
503
  with tab_home:
@@ -518,6 +518,12 @@ with tab_home:
518
  fig.update_traces(line=dict(width=2))
519
  st.plotly_chart(fig)
520
 
 
 
 
 
 
 
521
  # Optimization Recommendations
522
  current_demand = data["load_demand_kwh"].iloc[-1]
523
  current_solar = data["solar_output_kw"].iloc[-1]
 
497
  st.sidebar.write(f"Weather: {weather['weather']}")
498
 
499
  # Tabs
500
+ tab_home, tab_storage, tab_trading = st.tabs(["Home", "Power Storage", "Electricity Trade Management"])
501
 
502
  # Home Tab
503
  with tab_home:
 
518
  fig.update_traces(line=dict(width=2))
519
  st.plotly_chart(fig)
520
 
521
+ # Grid Health
522
+ st.subheader("Grid Health Overview")
523
+ grid_health_counts = data["grid_health"].value_counts()
524
+ st.bar_chart(grid_health_counts)
525
+
526
+
527
  # Optimization Recommendations
528
  current_demand = data["load_demand_kwh"].iloc[-1]
529
  current_solar = data["solar_output_kw"].iloc[-1]