Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -31,6 +31,9 @@ def predict_sales():
|
|
| 31 |
# Get the JSON data from the request body
|
| 32 |
lead_data = request.get_json()
|
| 33 |
|
|
|
|
|
|
|
|
|
|
| 34 |
# Extract relevant lead features from the input data
|
| 35 |
sample = {
|
| 36 |
'age': lead_data['age'],
|
|
|
|
| 31 |
# Get the JSON data from the request body
|
| 32 |
lead_data = request.get_json()
|
| 33 |
|
| 34 |
+
print("Received payload:", lead_data)
|
| 35 |
+
|
| 36 |
+
|
| 37 |
# Extract relevant lead features from the input data
|
| 38 |
sample = {
|
| 39 |
'age': lead_data['age'],
|