Spaces:
Sleeping
Sleeping
debug iceserver
Browse files
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 |
-
|
| 58 |
-
|
| 59 |
-
|
| 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:")
|