Omkar008 commited on
Commit
4f02c7c
1 Parent(s): 6d42642

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -25,7 +25,7 @@ logger = logging.getLogger(__name__)
25
  @app.post("/getReceiptData")
26
  async def get_gmail_data(request:Request):
27
  body = await request.json()
28
- access_token = body.get("access_token")
29
  user_input = body.get("brand_name")
30
  data = GmailDataExtractor(access_token,user_input).extract_messages()
31
 
 
25
  @app.post("/getReceiptData")
26
  async def get_gmail_data(request:Request):
27
  body = await request.json()
28
+ access_token = body.get("data")
29
  user_input = body.get("brand_name")
30
  data = GmailDataExtractor(access_token,user_input).extract_messages()
31