Anil commited on
Commit
7cbe718
·
1 Parent(s): 87a4dee
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -16,10 +16,8 @@ def process_email(email, password):
16
  # Making the POST request to the Lambda function
17
  try:
18
  response = requests.post(lambda_endpoint, json=payload)
19
- # Assuming the response is in JSON format and contains a field 'message'
20
  response_data = response.json()
21
  if response.status_code == 200:
22
- # Assuming the Lambda function sends back a response in a JSON format you expect
23
  return response_data.get('message', 'Success, but no message returned.')
24
  else:
25
  return f"Error: {response_data.get('message', 'No message returned.')}"
 
16
  # Making the POST request to the Lambda function
17
  try:
18
  response = requests.post(lambda_endpoint, json=payload)
 
19
  response_data = response.json()
20
  if response.status_code == 200:
 
21
  return response_data.get('message', 'Success, but no message returned.')
22
  else:
23
  return f"Error: {response_data.get('message', 'No message returned.')}"