Spaces:
Paused
Paused
Update app.py
Browse files
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()
|