freddyaboulton HF staff commited on
Commit
9cd3f82
1 Parent(s): 274649e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import gradio as gr
2
- from gradio_webrtc import WebRTC, ReplyOnStopWords, AdditionalOutputs, audio_to_bytes
3
  import numpy as np
4
  import base64
5
  import re
@@ -10,9 +10,8 @@ load_dotenv()
10
 
11
  spinner_html = open("spinner.html").read()
12
 
13
- rtc_configuration = None
14
 
15
- print("rtc_configuration", rtc_configuration)
16
 
17
  import logging
18
  # Configure the root logger to WARNING to suppress debug messages from other libraries
 
1
  import gradio as gr
2
+ from gradio_webrtc import WebRTC, ReplyOnStopWords, AdditionalOutputs, audio_to_bytes, get_twilio_turn_credentials
3
  import numpy as np
4
  import base64
5
  import re
 
10
 
11
  spinner_html = open("spinner.html").read()
12
 
13
+ rtc_configuration = get_twilio_turn_credentials()
14
 
 
15
 
16
  import logging
17
  # Configure the root logger to WARNING to suppress debug messages from other libraries