Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -12,12 +12,14 @@ import io
|
|
12 |
from bs4 import BeautifulSoup
|
13 |
import re
|
14 |
from get_gmail_data import GmailDataExtractor
|
15 |
-
|
16 |
app = FastAPI()
|
|
|
|
|
17 |
|
18 |
-
GOOGLE_CLIENT_ID =
|
19 |
-
GOOGLE_CLIENT_SECRET =
|
20 |
-
GOOGLE_REDIRECT_URI =
|
21 |
# Configure the logger
|
22 |
logging.basicConfig(level=logging.DEBUG)
|
23 |
logger = logging.getLogger(__name__)
|
|
|
12 |
from bs4 import BeautifulSoup
|
13 |
import re
|
14 |
from get_gmail_data import GmailDataExtractor
|
15 |
+
from dotenv import load_dotenv()
|
16 |
app = FastAPI()
|
17 |
+
load_dotenv()
|
18 |
+
|
19 |
|
20 |
+
GOOGLE_CLIENT_ID = os.getenv('GOOGLE_CLIENT_ID')
|
21 |
+
GOOGLE_CLIENT_SECRET =os.getenv('GOOGLE_CLIENT_SECRET')
|
22 |
+
GOOGLE_REDIRECT_URI = os.getenv('GOOGLE_REDIRECT_URI')
|
23 |
# Configure the logger
|
24 |
logging.basicConfig(level=logging.DEBUG)
|
25 |
logger = logging.getLogger(__name__)
|