Vaibhav84 commited on
Commit
ada7a79
·
1 Parent(s): 7904f7c
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -334,7 +334,7 @@ async def get_customer_content_recommendations(customer_id: str, n: int = 5):
334
  customer_profile = customer_profiles[customer_profiles['Customer_Id'] == customer_id].iloc[0]
335
  profile_summary = {
336
  "age_group": "Young" if customer_profile['Age'] < 25 else "Middle" if customer_profile['Age'] < 40 else "Senior",
337
- "income_level": "Low" if customer_profile['Income'] < 50000 else "Medium" if customer_profile['Income'] < 100000 else "High"
338
  }
339
 
340
  # Get content recommendations
 
334
  customer_profile = customer_profiles[customer_profiles['Customer_Id'] == customer_id].iloc[0]
335
  profile_summary = {
336
  "age_group": "Young" if customer_profile['Age'] < 25 else "Middle" if customer_profile['Age'] < 40 else "Senior",
337
+ "income_level": "Low" if customer_profile['Income per year (in dollars)'] < 50000 else "Medium" if customer_profile['Income per year (in dollars)'] < 100000 else "High"
338
  }
339
 
340
  # Get content recommendations