Sofia Casadei commited on
Commit
e523c05
·
1 Parent(s): 437ed2e

fix: use hf-cloudflare turn server

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -151,7 +151,7 @@ async def index():
151
  elif UI_TYPE == "screen":
152
  html_content = open("static/index-screen.html").read()
153
 
154
- rtc_configuration = get_cloudflare_turn_credentials_async(hf_token=os.getenv("HF_TOKEN")) if APP_MODE == "deployed" else None
155
  html_content = html_content.replace("__RTC_CONFIGURATION__", json.dumps(rtc_configuration))
156
  return HTMLResponse(content=html_content)
157
 
 
151
  elif UI_TYPE == "screen":
152
  html_content = open("static/index-screen.html").read()
153
 
154
+ rtc_configuration = await get_cloudflare_turn_credentials_async(hf_token=os.getenv("HF_TOKEN")) if APP_MODE == "deployed" else None
155
  html_content = html_content.replace("__RTC_CONFIGURATION__", json.dumps(rtc_configuration))
156
  return HTMLResponse(content=html_content)
157