Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -26,10 +26,10 @@ async def get_gmail_data(request:Request):
|
|
26 |
data = await request.json()
|
27 |
access_token = data.get("access_token")
|
28 |
user_input = data.get("brand_name")
|
29 |
-
data = GmailDataExtractor(access_token,user_input).extract_messages()
|
30 |
|
31 |
-
print(data.error)
|
32 |
-
print(data.json())
|
33 |
return data
|
34 |
|
35 |
|
|
|
26 |
data = await request.json()
|
27 |
access_token = data.get("access_token")
|
28 |
user_input = data.get("brand_name")
|
29 |
+
data = GmailDataExtractor(access_token,user_input).extract_messages()
|
30 |
|
31 |
+
# print(data.error)
|
32 |
+
# print(data.json())
|
33 |
return data
|
34 |
|
35 |
|