Spaces:
Running
Running
Update main.py
Browse files
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("
|
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 |
|