Omkar008 commited on
Commit
c640dce
1 Parent(s): 543b044

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -26,8 +26,8 @@ logger = logging.getLogger(__name__)
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).extract_messages()
31
 
32
  # print(data.error)
33
  # print(data.json())
 
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
 
32
  # print(data.error)
33
  # print(data.json())