Spaces:
Running
Running
Replace cloudflare turn services with twilio
Browse files- app.py +8 -4
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -34,6 +34,7 @@ from fastrtc import (
|
|
| 34 |
ReplyOnPause,
|
| 35 |
get_cloudflare_turn_credentials_async,
|
| 36 |
get_cloudflare_turn_credentials,
|
|
|
|
| 37 |
)
|
| 38 |
|
| 39 |
from mcp_host.agent import VibeShoppingAgent
|
|
@@ -170,11 +171,14 @@ with gr.Blocks(
|
|
| 170 |
modality="audio",
|
| 171 |
button_labels={"start": "Start Vibe Shopping"},
|
| 172 |
rtc_configuration=(
|
| 173 |
-
|
| 174 |
-
),
|
| 175 |
-
server_rtc_configuration=(
|
| 176 |
-
get_cloudflare_turn_credentials(ttl=360_000) if not IS_LOCAL else None
|
| 177 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
scale=0,
|
| 179 |
time_limit=3600,
|
| 180 |
)
|
|
|
|
| 34 |
ReplyOnPause,
|
| 35 |
get_cloudflare_turn_credentials_async,
|
| 36 |
get_cloudflare_turn_credentials,
|
| 37 |
+
get_twilio_turn_credentials,
|
| 38 |
)
|
| 39 |
|
| 40 |
from mcp_host.agent import VibeShoppingAgent
|
|
|
|
| 171 |
modality="audio",
|
| 172 |
button_labels={"start": "Start Vibe Shopping"},
|
| 173 |
rtc_configuration=(
|
| 174 |
+
get_twilio_turn_credentials() if not IS_LOCAL else None
|
|
|
|
|
|
|
|
|
|
| 175 |
),
|
| 176 |
+
# rtc_configuration=(
|
| 177 |
+
# get_cloudflare_turn_credentials_async if not IS_LOCAL else None
|
| 178 |
+
# ),
|
| 179 |
+
# server_rtc_configuration=(
|
| 180 |
+
# get_cloudflare_turn_credentials(ttl=360_000) if not IS_LOCAL else None
|
| 181 |
+
# ),
|
| 182 |
scale=0,
|
| 183 |
time_limit=3600,
|
| 184 |
)
|
requirements.txt
CHANGED
|
@@ -11,4 +11,5 @@ torchaudio
|
|
| 11 |
gradio_client
|
| 12 |
aiortc==1.11.0
|
| 13 |
aiohttp
|
| 14 |
-
gradio_modal
|
|
|
|
|
|
| 11 |
gradio_client
|
| 12 |
aiortc==1.11.0
|
| 13 |
aiohttp
|
| 14 |
+
gradio_modal
|
| 15 |
+
twilio
|