freddyaboulton HF Staff commited on
Commit
3dd6c33
·
verified ·
1 Parent(s): 5b3be3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -14,6 +14,7 @@ from fastrtc import (
14
  ReplyOnPause,
15
  Stream,
16
  get_cloudflare_turn_credentials_async,
 
17
  get_stt_model,
18
  )
19
  from gradio.utils import get_space
@@ -76,6 +77,7 @@ stream = Stream(
76
  additional_outputs_handler=lambda *a: (a[2], a[3]),
77
  concurrency_limit=20 if get_space() else None,
78
  rtc_configuration=get_cloudflare_turn_credentials_async,
 
79
  )
80
 
81
  app = FastAPI()
 
14
  ReplyOnPause,
15
  Stream,
16
  get_cloudflare_turn_credentials_async,
17
+ get_cloudflare_turn_credentials,
18
  get_stt_model,
19
  )
20
  from gradio.utils import get_space
 
77
  additional_outputs_handler=lambda *a: (a[2], a[3]),
78
  concurrency_limit=20 if get_space() else None,
79
  rtc_configuration=get_cloudflare_turn_credentials_async,
80
+ server_rtc_configuration=get_cloudflare_turn_credentials(ttl=360_000)
81
  )
82
 
83
  app = FastAPI()