Spaces:
Sleeping
Sleeping
API
Browse files
app.py
CHANGED
@@ -257,7 +257,7 @@ def get_content_recommendations(customer_id: str, n: int = 5) -> List[Dict]:
|
|
257 |
])
|
258 |
|
259 |
# Income-based recommendations
|
260 |
-
income = customer_profile['Income'] * scaler.scale_[1] + scaler.mean_[1] # Denormalize income
|
261 |
|
262 |
if income < 50000:
|
263 |
content_suggestions.extend([
|
|
|
257 |
])
|
258 |
|
259 |
# Income-based recommendations
|
260 |
+
income = customer_profile['Income per year (in dollars)'] * scaler.scale_[1] + scaler.mean_[1] # Denormalize income
|
261 |
|
262 |
if income < 50000:
|
263 |
content_suggestions.extend([
|