lokeshloki143 commited on
Commit
d0ec026
·
verified ·
1 Parent(s): 997d665

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import requests
2
  import json
3
  import logging
@@ -19,11 +20,11 @@ logger = logging.getLogger(__name__)
19
  HUGGING_FACE_API_URL = "https://api-inference.huggingface.co/models/distilgpt2"
20
  HUGGING_FACE_API_TOKEN = "your_hugging_face_api_token_here" # Replace with your actual Hugging Face API token
21
 
22
- # Salesforce configuration
23
- SALESFORCE_USERNAME = "Ai@Coach.com"
24
- SALESFORCE_PASSWORD = "Teja90325@"
25
- SALESFORCE_SECURITY_TOKEN = "clceSdBgQ30Rx9BSC66gAcRx"
26
- SALESFORCE_DOMAIN = "login.salesforce.com"
27
 
28
  # Validate configuration
29
  if not HUGGING_FACE_API_TOKEN:
 
1
+ import os
2
  import requests
3
  import json
4
  import logging
 
20
  HUGGING_FACE_API_URL = "https://api-inference.huggingface.co/models/distilgpt2"
21
  HUGGING_FACE_API_TOKEN = "your_hugging_face_api_token_here" # Replace with your actual Hugging Face API token
22
 
23
+ # Salesforce credentials
24
+ SF_USERNAME = os.getenv("SF_USERNAME", "Ai@Coach.com")
25
+ SF_PASSWORD = os.getenv("SF_PASSWORD", "Teja90325@")
26
+ SF_SECURITY_TOKEN = os.getenv("SF_SECURITY_TOKEN", "clceSdBgQ30Rx9BSC66gAcRx")
27
+ SF_DOMAIN = os.getenv("SF_DOMAIN", "login")
28
 
29
  # Validate configuration
30
  if not HUGGING_FACE_API_TOKEN: