Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,8 +13,8 @@ API_VERSION = "v60.0"
|
|
| 13 |
def get_salesforce_token():
|
| 14 |
data = {
|
| 15 |
"grant_type": "password",
|
| 16 |
-
"username":
|
| 17 |
-
"password":
|
| 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("🚦
|
| 43 |
|
| 44 |
token, instance_url = get_salesforce_token()
|
| 45 |
|
|
|
|
| 13 |
def get_salesforce_token():
|
| 14 |
data = {
|
| 15 |
"grant_type": "password",
|
| 16 |
+
"username":greenenergy@vedavathi.com,
|
| 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 |
|