Spaces:
Build error
Build error
Update app.py
Browse files
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
|
| 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:
|