Martlgap commited on
Commit
0d85a96
1 Parent(s): 7a5e8c5

debug iceserver

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -54,9 +54,9 @@ SIMILARITY_THRESHOLD = 1.2
54
 
55
  # Get twilio ice server configuration using twilio credentials from environment variables (set in streamlit secrets)
56
  # Ref: https://www.twilio.com/docs/stun-turn/api
57
- ICE_SERVERS = Client(os.environ["TWILIO_ACCOUNT_SID"], os.environ["TWILIO_AUTH_TOKEN"]).tokens.create().ice_servers
58
-
59
- print(ICE_SERVERS)
60
 
61
  # Set page layout for streamlit to wide
62
  st.set_page_config(layout="wide", page_title="Live Face Recognition", page_icon=":sunglasses:")
 
54
 
55
  # Get twilio ice server configuration using twilio credentials from environment variables (set in streamlit secrets)
56
  # Ref: https://www.twilio.com/docs/stun-turn/api
57
+ client = Client(os.environ["TWILIO_ACCOUNT_SID"], os.environ["TWILIO_AUTH_TOKEN"])
58
+ token = client.tokens.create()
59
+ ICE_SERVERS = token.ice_servers
60
 
61
  # Set page layout for streamlit to wide
62
  st.set_page_config(layout="wide", page_title="Live Face Recognition", page_icon=":sunglasses:")