sudo-paras-shah commited on
Commit
bb922d4
·
1 Parent(s): fcf3d5f

Get env variable using python

Browse files

Finally read the docs

Vibe coding is bad

Files changed (1) hide show
  1. src/streamlit_app.py +2 -3
src/streamlit_app.py CHANGED
@@ -25,9 +25,8 @@ from PIL import Image
25
  import streamlit as st
26
  from streamlit_webrtc import VideoProcessorBase, webrtc_streamer, RTCConfiguration
27
 
28
- print("Secrets:", st.secrets.items())
29
- account_sid = st.secrets.get("ACCOUNT_SID")
30
- auth_token = st.secrets.get("AUTH_TOKEN")
31
  if account_sid and auth_token:
32
  try:
33
  twilio_client = Client(account_sid, auth_token)
 
25
  import streamlit as st
26
  from streamlit_webrtc import VideoProcessorBase, webrtc_streamer, RTCConfiguration
27
 
28
+ account_sid = os.environ.get("ACCOUNT_SID")
29
+ auth_token = os.environ.get("AUTH_TOKEN")
 
30
  if account_sid and auth_token:
31
  try:
32
  twilio_client = Client(account_sid, auth_token)