Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- app.py +1 -1
- index.html +5 -4
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -87,7 +87,7 @@ class InputData(BaseModel):
|
|
| 87 |
|
| 88 |
@stream.get("/")
|
| 89 |
async def _():
|
| 90 |
-
rtc_config = get_twilio_turn_credentials() if get_space() else
|
| 91 |
html_content = (curr_dir / "index.html").read_text()
|
| 92 |
html_content = html_content.replace("__RTC_CONFIGURATION__", json.dumps(rtc_config))
|
| 93 |
return HTMLResponse(content=html_content, status_code=200)
|
|
|
|
| 87 |
|
| 88 |
@stream.get("/")
|
| 89 |
async def _():
|
| 90 |
+
rtc_config = get_twilio_turn_credentials() if get_space() else None
|
| 91 |
html_content = (curr_dir / "index.html").read_text()
|
| 92 |
html_content = html_content.replace("__RTC_CONFIGURATION__", json.dumps(rtc_config))
|
| 93 |
return HTMLResponse(content=html_content, status_code=200)
|
index.html
CHANGED
|
@@ -146,10 +146,10 @@
|
|
| 146 |
<body>
|
| 147 |
<nav class="nav-bar">
|
| 148 |
<div class="nav-container">
|
| 149 |
-
<a href="
|
| 150 |
-
<a href="
|
| 151 |
-
<a href="
|
| 152 |
-
<a href="
|
| 153 |
</div>
|
| 154 |
</nav>
|
| 155 |
|
|
@@ -246,6 +246,7 @@
|
|
| 246 |
button.textContent = "Stop";
|
| 247 |
|
| 248 |
const config = __RTC_CONFIGURATION__;
|
|
|
|
| 249 |
webrtcPeerConnection = new RTCPeerConnection(config);
|
| 250 |
const webrtcId = generateId();
|
| 251 |
|
|
|
|
| 146 |
<body>
|
| 147 |
<nav class="nav-bar">
|
| 148 |
<div class="nav-container">
|
| 149 |
+
<a href="./webrtc/docs" class="nav-button">WebRTC Docs</a>
|
| 150 |
+
<a href="./websocket/docs" class="nav-button">WebSocket Docs</a>
|
| 151 |
+
<a href="./telephone/docs" class="nav-button">Telephone Docs</a>
|
| 152 |
+
<a href="./ui" class="nav-button">UI</a>
|
| 153 |
</div>
|
| 154 |
</nav>
|
| 155 |
|
|
|
|
| 246 |
button.textContent = "Stop";
|
| 247 |
|
| 248 |
const config = __RTC_CONFIGURATION__;
|
| 249 |
+
console.log("config", config);
|
| 250 |
webrtcPeerConnection = new RTCPeerConnection(config);
|
| 251 |
const webrtcId = generateId();
|
| 252 |
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
fastrtc[vad]
|
| 2 |
elevenlabs
|
| 3 |
groq
|
| 4 |
anthropic
|
|
|
|
| 1 |
+
fastrtc[vad]==0.0.32rc1
|
| 2 |
elevenlabs
|
| 3 |
groq
|
| 4 |
anthropic
|