Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ from fastrtc import (
|
|
14 |
ReplyOnPause,
|
15 |
Stream,
|
16 |
get_stt_model,
|
17 |
-
|
18 |
)
|
19 |
from gradio.utils import get_space
|
20 |
from pydantic import BaseModel
|
@@ -75,7 +75,7 @@ stream = Stream(
|
|
75 |
additional_outputs=[chatbot, state],
|
76 |
additional_outputs_handler=lambda *a: (a[2], a[3]),
|
77 |
concurrency_limit=20 if get_space() else None,
|
78 |
-
rtc_configuration=
|
79 |
)
|
80 |
|
81 |
app = FastAPI()
|
|
|
14 |
ReplyOnPause,
|
15 |
Stream,
|
16 |
get_stt_model,
|
17 |
+
get_cloudflare_turn_credentials,
|
18 |
)
|
19 |
from gradio.utils import get_space
|
20 |
from pydantic import BaseModel
|
|
|
75 |
additional_outputs=[chatbot, state],
|
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,
|
79 |
)
|
80 |
|
81 |
app = FastAPI()
|