Commit
·
a549554
1
Parent(s):
f40cd70
Correctly load env variables from streamlit
Browse files- src/streamlit_app.py +3 -3
src/streamlit_app.py
CHANGED
|
@@ -6,9 +6,6 @@ import traceback
|
|
| 6 |
|
| 7 |
from twilio.rest import Client
|
| 8 |
|
| 9 |
-
account_sid = st.secrets["ACCOUNT_SID"]
|
| 10 |
-
auth_token = st.secrets["AUTH_TOKEN"]
|
| 11 |
-
|
| 12 |
os.environ["HOME"] = "/tmp"
|
| 13 |
os.environ["STREAMLIT_HOME"] = "/tmp"
|
| 14 |
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
|
|
@@ -27,6 +24,9 @@ from PIL import Image
|
|
| 27 |
|
| 28 |
import streamlit as st
|
| 29 |
from streamlit_webrtc import VideoProcessorBase, webrtc_streamer, RTCConfiguration
|
|
|
|
|
|
|
|
|
|
| 30 |
if account_sid and auth_token:
|
| 31 |
try:
|
| 32 |
twilio_client = Client(account_sid, auth_token)
|
|
|
|
| 6 |
|
| 7 |
from twilio.rest import Client
|
| 8 |
|
|
|
|
|
|
|
|
|
|
| 9 |
os.environ["HOME"] = "/tmp"
|
| 10 |
os.environ["STREAMLIT_HOME"] = "/tmp"
|
| 11 |
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
|
|
|
|
| 24 |
|
| 25 |
import streamlit as st
|
| 26 |
from streamlit_webrtc import VideoProcessorBase, webrtc_streamer, RTCConfiguration
|
| 27 |
+
|
| 28 |
+
account_sid = st.secrets["ACCOUNT_SID"]
|
| 29 |
+
auth_token = st.secrets["AUTH_TOKEN"]
|
| 30 |
if account_sid and auth_token:
|
| 31 |
try:
|
| 32 |
twilio_client = Client(account_sid, auth_token)
|