freddyaboulton HF staff commited on
Commit
eab6f19
·
1 Parent(s): 405ac70
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -12,7 +12,8 @@ from gradio_webrtc import (
12
  WebRTC,
13
  async_aggregate_bytes_to_16bit,
14
  VideoEmitType,
15
- AudioEmitType
 
16
  )
17
  from PIL import Image
18
 
@@ -139,9 +140,7 @@ with gr.Blocks(css=css) as demo:
139
  modality="audio-video",
140
  mode="send-receive",
141
  elem_id="video-source",
142
- # See for changes needed to deploy behind a firewall
143
- # https://freddyaboulton.github.io/gradio-webrtc/deployment/
144
- rtc_configuration=None,
145
  icon="https://www.gstatic.com/lamda/images/gemini_favicon_f069958c85030456e93de685481c559f160ea06b.png",
146
  pulse_color="rgb(35, 157, 225)",
147
  icon_button_color="rgb(35, 157, 225)",
 
12
  WebRTC,
13
  async_aggregate_bytes_to_16bit,
14
  VideoEmitType,
15
+ AudioEmitType,
16
+ get_twilio_turn_credentials,
17
  )
18
  from PIL import Image
19
 
 
140
  modality="audio-video",
141
  mode="send-receive",
142
  elem_id="video-source",
143
+ rtc_configuration=get_twilio_turn_credentials(),
 
 
144
  icon="https://www.gstatic.com/lamda/images/gemini_favicon_f069958c85030456e93de685481c559f160ea06b.png",
145
  pulse_color="rgb(35, 157, 225)",
146
  icon_button_color="rgb(35, 157, 225)",