mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
@@ -13,6 +13,7 @@ from fastrtc import (
|
||||
AdditionalOutputs,
|
||||
ReplyOnPause,
|
||||
Stream,
|
||||
get_cloudflare_turn_credentials,
|
||||
get_cloudflare_turn_credentials_async,
|
||||
get_stt_model,
|
||||
)
|
||||
@@ -76,6 +77,7 @@ stream = Stream(
|
||||
additional_outputs_handler=lambda *a: (a[2], a[3]),
|
||||
concurrency_limit=20 if get_space() else None,
|
||||
rtc_configuration=get_cloudflare_turn_credentials_async,
|
||||
server_rtc_configuration=get_cloudflare_turn_credentials(ttl=36_000),
|
||||
)
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
Reference in New Issue
Block a user