masadonline commited on
Commit
5d5da2a
·
verified ·
1 Parent(s): fc6ee0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -20,7 +20,7 @@ DEFAULT_TWILIO_AUTH_TOKEN_FALLBACK = "" # Fallback if secret "TWILIO_TOKEN" is
20
  DEFAULT_GROQ_API_KEY_FALLBACK = "" # Fallback if secret "GROQ_API_KEY" is not found
21
 
22
  DEFAULT_TWILIO_CONVERSATION_SERVICE_SID = ""
23
- DEFAULT_TWILIO_BOT_WHATSAPP_IDENTITY = "whatsapp:+14155238886" # Twilio Sandbox default
24
  DEFAULT_EMBEDDING_MODEL_NAME = "sentence-transformers/all-MiniLM-L6-v2"
25
  DEFAULT_POLLING_INTERVAL_S = 30
26
  DOCS_FOLDER = "docs/"
@@ -31,8 +31,8 @@ FAQ_PDF_FILE = os.path.join(DOCS_FOLDER, "FAQ.pdf")
31
 
32
  # --- Application Secrets Configuration ---
33
  # These are the primary keys fetched from st.secrets as per user request
34
- APP_TWILIO_ACCOUNT_SID = st.secrets.get("TWILIO_SID")
35
- APP_TWILIO_AUTH_TOKEN = st.secrets.get("TWILIO_TOKEN")
36
  APP_GROQ_API_KEY = st.secrets.get("GROQ_API_KEY")
37
 
38
  # Other secrets with fallback to defaults/sidebar input (if secrets not found)
 
20
  DEFAULT_GROQ_API_KEY_FALLBACK = "" # Fallback if secret "GROQ_API_KEY" is not found
21
 
22
  DEFAULT_TWILIO_CONVERSATION_SERVICE_SID = ""
23
+ DEFAULT_TWILIO_BOT_WHATSAPP_IDENTITY = st.secrets.get("TWILIO_PHONE_NUMBER")#"whatsapp:+14155238886" # Twilio Sandbox default
24
  DEFAULT_EMBEDDING_MODEL_NAME = "sentence-transformers/all-MiniLM-L6-v2"
25
  DEFAULT_POLLING_INTERVAL_S = 30
26
  DOCS_FOLDER = "docs/"
 
31
 
32
  # --- Application Secrets Configuration ---
33
  # These are the primary keys fetched from st.secrets as per user request
34
+ APP_TWILIO_ACCOUNT_SID = st.secrets.get("TWILIO_ACCOUNT_SID")
35
+ APP_TWILIO_AUTH_TOKEN = st.secrets.get("TWILIO_AUTH_TOKEN")
36
  APP_GROQ_API_KEY = st.secrets.get("GROQ_API_KEY")
37
 
38
  # Other secrets with fallback to defaults/sidebar input (if secrets not found)