Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 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:
|