ccclllwww commited on
Commit
5b47b5d
·
verified ·
1 Parent(s): 07ac075

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -1,3 +1,12 @@
1
  from streamlit_webrtc import webrtc_streamer
 
 
2
 
3
- webrtc_streamer(key="sample")
 
 
 
 
 
 
 
 
1
  from streamlit_webrtc import webrtc_streamer
2
+ import os
3
+ from twilio.rest import Client
4
 
5
+ # Find your Account SID and Auth Token at twilio.com/console
6
+ # and set the environment variables. See http://twil.io/secure
7
+ account_sid = os.environ['AC9b487ef91db53af2b4afdaff07982831']
8
+ auth_token = os.environ['06578b544f0b268cfce25330d3b81eb3']
9
+ client = Client(account_sid, auth_token)
10
+ token = client.tokens.create()
11
+
12
+ webrtc_streamer(key="sample",rtc_configuration={"iceServers": token.ice_servers})