Spaces:
Runtime error
Runtime error
changes
Browse files- app/gmail_auth.py +4 -2
app/gmail_auth.py
CHANGED
|
@@ -30,10 +30,12 @@ from langchain_google_community.gmail.utils import (
|
|
| 30 |
from langchain_google_community import GmailToolkit
|
| 31 |
|
| 32 |
# LOAD CREDENTIALS - Fixed parameter name to 'client_secrets_file'
|
| 33 |
-
credentials = get_gmail_credentials(
|
|
|
|
|
|
|
| 34 |
token_file=str(TOKEN_PATH.resolve()),
|
| 35 |
scopes=["https://mail.google.com/"],
|
| 36 |
-
|
| 37 |
)
|
| 38 |
|
| 39 |
# BUILD API RESOURCE
|
|
|
|
| 30 |
from langchain_google_community import GmailToolkit
|
| 31 |
|
| 32 |
# LOAD CREDENTIALS - Fixed parameter name to 'client_secrets_file'
|
| 33 |
+
credentials = get_gmail_credentials(
|
| 34 |
+
|
| 35 |
+
|
| 36 |
token_file=str(TOKEN_PATH.resolve()),
|
| 37 |
scopes=["https://mail.google.com/"],
|
| 38 |
+
client_sercret_file=str(CREDENTIALS_PATH.resolve()), # <-- Fixed typo here
|
| 39 |
)
|
| 40 |
|
| 41 |
# BUILD API RESOURCE
|