Spaces:
Runtime error
Runtime error
aagoluoglu
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ templates = Jinja2Templates(directory="templates")
|
|
11 |
|
12 |
CLIENT_ID = "931024815427-72meiq3uivuuolfukb3jvikvhhqlr574.apps.googleusercontent.com"
|
13 |
CLIENT_SECRET = "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"
|
14 |
-
REDIRECT_URI = "http://localhost:
|
15 |
|
16 |
oauth2_scheme = OAuth2AuthorizationCodeBearer(
|
17 |
authorizationUrl="https://accounts.google.com/o/oauth2/auth",
|
@@ -61,4 +61,4 @@ async def fetch_comments(access_token: str = Depends(oauth2_scheme)):
|
|
61 |
raise HTTPException(status_code=response.status_code, detail="Failed to fetch comments")
|
62 |
|
63 |
if __name__ == "__main__":
|
64 |
-
uvicorn.run(app, host="0.0.0.0", port=
|
|
|
11 |
|
12 |
CLIENT_ID = "931024815427-72meiq3uivuuolfukb3jvikvhhqlr574.apps.googleusercontent.com"
|
13 |
CLIENT_SECRET = "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"
|
14 |
+
REDIRECT_URI = "http://localhost:3000/auth/google/callback"
|
15 |
|
16 |
oauth2_scheme = OAuth2AuthorizationCodeBearer(
|
17 |
authorizationUrl="https://accounts.google.com/o/oauth2/auth",
|
|
|
61 |
raise HTTPException(status_code=response.status_code, detail="Failed to fetch comments")
|
62 |
|
63 |
if __name__ == "__main__":
|
64 |
+
uvicorn.run(app, host="0.0.0.0", port=3000)
|