rehanafzal commited on
Commit
341941e
·
verified ·
1 Parent(s): fbf2a5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -261,6 +261,13 @@ with tabs[0]:
261
  st.plotly_chart(fig)
262
 
263
  # Grid Health Indicator
 
 
 
 
 
 
 
264
  st.subheader("Grid Health Status")
265
  grid_health = "Stable" if data["grid_generation_mw"].mean() >= data["total_power_consumption_mw"].mean() else "Critical"
266
  st.write(f"**Grid Health:** {grid_health}")
 
261
  st.plotly_chart(fig)
262
 
263
  # Grid Health Indicator
264
+ # # Grid health overview
265
+ st.subheader("Grid Health Overview")
266
+ grid_health_counts = data["grid_health"].value_counts()
267
+ st.bar_chart(grid_health_counts)
268
+
269
+
270
+
271
  st.subheader("Grid Health Status")
272
  grid_health = "Stable" if data["grid_generation_mw"].mean() >= data["total_power_consumption_mw"].mean() else "Critical"
273
  st.write(f"**Grid Health:** {grid_health}")