thomasgauthier commited on
Commit
08ae35d
1 Parent(s): 08df1d7
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -414,10 +414,10 @@ async def oauth_callback(code: str, state: str):
414
 
415
  @app.get("/oauth-config")
416
  async def get_oauth_config(request: Request):
417
- client_host = request.client.host
418
  return {
419
  "client_id": client_id,
420
- "redirect_uri": f'https://{client_host}/login/callback'
421
  }
422
 
423
 
 
414
 
415
  @app.get("/oauth-config")
416
  async def get_oauth_config(request: Request):
417
+ # client_host = "https://huggingface.co/spaces/thomasgauthier/ChatExplorer#request.client.host
418
  return {
419
  "client_id": client_id,
420
+ "redirect_uri": f'https://{space_host}/login/callback'
421
  }
422
 
423