Omkar008 commited on
Commit
0248a4a
1 Parent(s): fc8d3a9

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -4
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 = "485753721652-5uta3e18va2g6cnkldib2d68q39t4vod.apps.googleusercontent.com"
19
- GOOGLE_CLIENT_SECRET = "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"
20
- GOOGLE_REDIRECT_URI = "https://omkar008-receipt-radar-test.hf.space/test"
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__)