Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = "
|
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")
|