Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,9 @@
|
|
| 3 |
import streamlit as st
|
| 4 |
from salesforce_integration import fetch_poles
|
| 5 |
import plotly.express as px
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
st.title("📡 VIEP Smart Poles Dashboard (Salesforce Data)")
|
| 8 |
|
|
@@ -19,3 +22,5 @@ st.plotly_chart(px.bar(df, x="Name", y=["Solar_Generation__c", "Wind_Generation_
|
|
| 19 |
|
| 20 |
st.subheader("🎥 Camera Status")
|
| 21 |
st.plotly_chart(px.pie(df, names="Camera_Status__c", hole=0.4))
|
|
|
|
|
|
|
|
|
| 3 |
import streamlit as st
|
| 4 |
from salesforce_integration import fetch_poles
|
| 5 |
import plotly.express as px
|
| 6 |
+
from modules.visuals import display_dashboard, display_charts
|
| 7 |
+
|
| 8 |
+
|
| 9 |
|
| 10 |
st.title("📡 VIEP Smart Poles Dashboard (Salesforce Data)")
|
| 11 |
|
|
|
|
| 22 |
|
| 23 |
st.subheader("🎥 Camera Status")
|
| 24 |
st.plotly_chart(px.pie(df, names="Camera_Status__c", hole=0.4))
|
| 25 |
+
display_dashboard(df)
|
| 26 |
+
display_charts(df)
|