Update app.py
Browse files
app.py
CHANGED
@@ -95,7 +95,7 @@ class InputData(BaseModel):
|
|
95 |
|
96 |
@app.get("/")
|
97 |
async def _():
|
98 |
-
rtc_config =
|
99 |
html_content = (curr_dir / "index.html").read_text()
|
100 |
html_content = html_content.replace("__RTC_CONFIGURATION__", json.dumps(rtc_config))
|
101 |
return HTMLResponse(content=html_content)
|
|
|
95 |
|
96 |
@app.get("/")
|
97 |
async def _():
|
98 |
+
rtc_config = await get_cloudflare_turn_credentials()
|
99 |
html_content = (curr_dir / "index.html").read_text()
|
100 |
html_content = html_content.replace("__RTC_CONFIGURATION__", json.dumps(rtc_config))
|
101 |
return HTMLResponse(content=html_content)
|