Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -33,19 +33,19 @@ def predict_sales():
|
|
| 33 |
|
| 34 |
# Extract relevant lead features from the input data
|
| 35 |
sample = {
|
| 36 |
-
'
|
| 37 |
-
'
|
| 38 |
-
'
|
| 39 |
-
'
|
| 40 |
-
'
|
| 41 |
-
'
|
| 42 |
-
'
|
| 43 |
-
'
|
| 44 |
-
'
|
| 45 |
-
'
|
| 46 |
-
'
|
| 47 |
-
'
|
| 48 |
-
'
|
| 49 |
}
|
| 50 |
|
| 51 |
# Convert the extracted data into a Pandas DataFrame
|
|
|
|
| 33 |
|
| 34 |
# Extract relevant lead features from the input data
|
| 35 |
sample = {
|
| 36 |
+
'age': lead_data['age'],
|
| 37 |
+
'current_occupation': lead_data['current_occupation'],
|
| 38 |
+
'first_interaction': lead_data['first_interaction'],
|
| 39 |
+
'profile_completed': lead_data['profile_completed'],
|
| 40 |
+
'website_visits': lead_data['website_visits'],
|
| 41 |
+
'time_spent_on_website': lead_data['time_spent_on_website'],
|
| 42 |
+
'page_views_per_Visit': lead_data['page_views_per_visit'],
|
| 43 |
+
'last_activity': lead_data['last_activity'],
|
| 44 |
+
'print_media_type1': lead_data['print_media_type1'],
|
| 45 |
+
'print_media_type2': lead_data['print_media_type2'],
|
| 46 |
+
'digital_media': lead_data['digital_media'],
|
| 47 |
+
'educational_channels': lead_data['educational_channels'],
|
| 48 |
+
'referral': lead_data['referral']
|
| 49 |
}
|
| 50 |
|
| 51 |
# Convert the extracted data into a Pandas DataFrame
|