XThomasBU commited on
Commit
7f45698
·
verified ·
1 Parent(s): f8640ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,11 +16,11 @@ from constants import (
16
  from fastapi.middleware.cors import CORSMiddleware
17
  from fastapi.staticfiles import StaticFiles
18
  import os
19
- os.environ['CHAINLIT_URL'] = "https://xthomasbu-test-tutor.hf.space"
20
 
21
  GOOGLE_CLIENT_ID = OAUTH_GOOGLE_CLIENT_ID
22
  GOOGLE_CLIENT_SECRET = OAUTH_GOOGLE_CLIENT_SECRET
23
- GOOGLE_REDIRECT_URI = "https://xthomasbu-test-tutor.hf.space/auth/oauth/google/callback"
24
 
25
  app = FastAPI()
26
  # app.mount("/public", StaticFiles(directory="public"), name="public")
 
16
  from fastapi.middleware.cors import CORSMiddleware
17
  from fastapi.staticfiles import StaticFiles
18
  import os
19
+ # os.environ['CHAINLIT_URL'] = "https://xthomasbu-test-tutor.hf.space"
20
 
21
  GOOGLE_CLIENT_ID = OAUTH_GOOGLE_CLIENT_ID
22
  GOOGLE_CLIENT_SECRET = OAUTH_GOOGLE_CLIENT_SECRET
23
+ GOOGLE_REDIRECT_URI = f"{CHAINLIT_URL}/auth/oauth/google/callback"
24
 
25
  app = FastAPI()
26
  # app.mount("/public", StaticFiles(directory="public"), name="public")