nb2024 commited on
Commit
c592119
·
verified ·
1 Parent(s): 2498f46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def process_lead_search(domain, password):
44
  response = requests.post(api_endpoint, json=payload)
45
  response_data = response.json()
46
  if response.status_code == 200:
47
- return response_data.get('message', 'Success, but no message returned.')
48
  else:
49
  return f"Error: {response_data.get('message', 'No message returned.')}"
50
  except Exception as e:
 
44
  response = requests.post(api_endpoint, json=payload)
45
  response_data = response.json()
46
  if response.status_code == 200:
47
+ return response_data
48
  else:
49
  return f"Error: {response_data.get('message', 'No message returned.')}"
50
  except Exception as e: