Sanjayraju30 commited on
Commit
69d8933
·
verified ·
1 Parent(s): e566f9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -3,7 +3,8 @@ import pandas as pd
3
  import streamlit as st
4
  import pydeck as pdk
5
  from datetime import datetime, timedelta
6
-
 
7
  # ---- Constants ----
8
  POLES_PER_SITE = 12
9
  SITES = {
@@ -124,3 +125,13 @@ if selected_site in SITES:
124
 
125
  else:
126
  st.warning("Invalid site. Please enter one of: Hyderabad, Gadwal, Kurnool, Ballari")
 
 
 
 
 
 
 
 
 
 
 
3
  import streamlit as st
4
  import pydeck as pdk
5
  from datetime import datetime, timedelta
6
+ from salesforce_integration import fetch_salesforce_data
7
+ from utils import process_data # Optional, if you need data processing
8
  # ---- Constants ----
9
  POLES_PER_SITE = 12
10
  SITES = {
 
125
 
126
  else:
127
  st.warning("Invalid site. Please enter one of: Hyderabad, Gadwal, Kurnool, Ballari")
128
+
129
+ # Fetch data from Salesforce
130
+ poles_data = fetch_salesforce_data()
131
+
132
+ # Process the data (optional, based on your model needs)
133
+ processed_data = process_data(poles_data)
134
+
135
+ # Display the processed data in Streamlit
136
+ st.title("Poles Data Visualization")
137
+ st.write("Processed Poles Data", processed_data)