freddyaboulton HF Staff commited on
Commit
b001436
·
verified ·
1 Parent(s): 5b4abee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
- from fastrtc import Stream, ReplyOnPause
2
 
3
  def echo(audio):
4
  yield audio
5
 
6
- stream = Stream(ReplyOnPause(echo), modality="audio", mode="send-receive")
7
  stream.ui.launch()
 
1
+ from fastrtc import Stream, ReplyOnPause, get_hf_turn_credentials
2
 
3
  def echo(audio):
4
  yield audio
5
 
6
+ stream = Stream(ReplyOnPause(echo), modality="audio", mode="send-receive", rtp_configuration=get_hf_turn_credentials())
7
  stream.ui.launch()