vijayendras commited on
Commit
264fe94
·
verified ·
1 Parent(s): 319b613

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -33,19 +33,19 @@ def predict_sales():
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
 
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