Sirivennela commited on
Commit
f94f139
·
verified ·
1 Parent(s): 9e1f606

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,8 +13,8 @@ API_VERSION = "v60.0"
13
  def get_salesforce_token():
14
  data = {
15
  "grant_type": "password",
16
- "username":"[email protected]",
17
- "password":"Vedavathi@04"
18
  }
19
  response = requests.post(TOKEN_URL, data=data)
20
  if response.status_code != 200:
@@ -39,7 +39,7 @@ def fetch_pole_data(instance_url, access_token):
39
  return df[["Id", "Name", "Location__c", "Status__c", "Installation_Date__c"]]
40
 
41
  # ---------------------- UI ----------------------
42
- st.title("🚦 Vedavathi Smart Poles Viewer")
43
 
44
  token, instance_url = get_salesforce_token()
45
 
 
13
  def get_salesforce_token():
14
  data = {
15
  "grant_type": "password",
16
+ "username":[email protected],
17
+ "password":Vedavathi@04
18
  }
19
  response = requests.post(TOKEN_URL, data=data)
20
  if response.status_code != 200:
 
39
  return df[["Id", "Name", "Location__c", "Status__c", "Installation_Date__c"]]
40
 
41
  # ---------------------- UI ----------------------
42
+ st.title("🚦Vedavathi Smart Poles Viewer")
43
 
44
  token, instance_url = get_salesforce_token()
45