rishiraj commited on
Commit
c364b66
·
verified ·
1 Parent(s): a9c736e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -13,6 +13,7 @@ from gradio_webrtc import (
13
  async_aggregate_bytes_to_16bit,
14
  VideoEmitType,
15
  AudioEmitType,
 
16
  )
17
  from PIL import Image
18
 
@@ -141,7 +142,7 @@ with gr.Blocks(css=css) as demo:
141
  modality="audio-video",
142
  mode="send-receive",
143
  elem_id="video-source",
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)",
 
13
  async_aggregate_bytes_to_16bit,
14
  VideoEmitType,
15
  AudioEmitType,
16
+ get_twilio_turn_credentials,
17
  )
18
  from PIL import Image
19
 
 
142
  modality="audio-video",
143
  mode="send-receive",
144
  elem_id="video-source",
145
+ rtc_configuration=get_twilio_turn_credentials(),
146
  icon="https://www.gstatic.com/lamda/images/gemini_favicon_f069958c85030456e93de685481c559f160ea06b.png",
147
  pulse_color="rgb(35, 157, 225)",
148
  icon_button_color="rgb(35, 157, 225)",