samuellimabraz commited on
Commit
db19a3a
·
unverified ·
1 Parent(s): 0b611a2

Remove unused get_ice_servers function from turn.py to simplify the codebase and eliminate unnecessary dependencies.

Browse files
Files changed (1) hide show
  1. utils/turn.py +0 -19
utils/turn.py DELETED
@@ -1,19 +0,0 @@
1
- import os, logging
2
- from twilio.rest import Client
3
- import streamlit as st
4
-
5
- logger = logging.getLogger(__name__)
6
-
7
-
8
- @st.cache_data
9
- def get_ice_servers():
10
- try:
11
- sid = os.environ["TWILIO_ACCOUNT_SID"]
12
- token = os.environ["TWILIO_AUTH_TOKEN"]
13
- except KeyError:
14
- logger.warning("Twilio credentials not set; falling back to public STUN only.")
15
- return [{"urls": ["stun:stun.l.google.com:19302"]}]
16
- client = Client(sid, token)
17
- # This will return both STUN and TURN servers from Twilio
18
- token = client.tokens.create()
19
- return token.ice_servers