Update app.py
Browse files
app.py
CHANGED
@@ -63,12 +63,11 @@ if user_type == 'New User':
|
|
63 |
recommendations = recommend_laptops(age=new_user_age, category=new_user_category, gender=new_user_gender)
|
64 |
st.subheader("Top 5 Recommended Laptops:")
|
65 |
# for i, row in recommendations.iterrows():
|
66 |
-
recommendations_table = recommendations[['
|
67 |
'Processor Brand', 'SSD', 'RAM (in GB)', 'RAM Type', 'Expandable Memory',
|
68 |
'Operating System', 'Touchscreen', 'Screen Size (in inch)', 'Weight (in kg)',
|
69 |
'Refresh Rate', 'screen_resolution', 'company', 'Storage', 'Processor name',
|
70 |
-
'CPU_ranking', 'battery_backup', 'gpu name ', 'gpu_benchmark',
|
71 |
-
'ram_type_tokenized', 'gpu_processor_tokenized', 'link']]
|
72 |
|
73 |
st.table(recommendations_table)
|
74 |
|
@@ -83,12 +82,11 @@ elif user_type == 'Existing User':
|
|
83 |
recommendations = recommend_laptops(user_id=int(existing_user_id))
|
84 |
st.subheader(f"Top 5 Recommended Laptops for User {existing_user_id}:")
|
85 |
# for i, row in recommendations.iterrows():
|
86 |
-
recommendations_table = recommendations[['
|
87 |
'Processor Brand', 'SSD', 'RAM (in GB)', 'RAM Type', 'Expandable Memory',
|
88 |
'Operating System', 'Touchscreen', 'Screen Size (in inch)', 'Weight (in kg)',
|
89 |
'Refresh Rate', 'screen_resolution', 'company', 'Storage', 'Processor name',
|
90 |
-
'CPU_ranking', 'battery_backup', 'gpu name ', 'gpu_benchmark',
|
91 |
-
'ram_type_tokenized', 'gpu_processor_tokenized', 'link']]
|
92 |
|
93 |
st.table(recommendations_table)
|
94 |
else:
|
|
|
63 |
recommendations = recommend_laptops(age=new_user_age, category=new_user_category, gender=new_user_gender)
|
64 |
st.subheader("Top 5 Recommended Laptops:")
|
65 |
# for i, row in recommendations.iterrows():
|
66 |
+
recommendations_table = recommendations[['name', 'Price (in Indian Rupees)', 'Type', 'Dedicated Graphic Memory Capacity',
|
67 |
'Processor Brand', 'SSD', 'RAM (in GB)', 'RAM Type', 'Expandable Memory',
|
68 |
'Operating System', 'Touchscreen', 'Screen Size (in inch)', 'Weight (in kg)',
|
69 |
'Refresh Rate', 'screen_resolution', 'company', 'Storage', 'Processor name',
|
70 |
+
'CPU_ranking', 'battery_backup', 'gpu name ', 'gpu_benchmark', 'link']]
|
|
|
71 |
|
72 |
st.table(recommendations_table)
|
73 |
|
|
|
82 |
recommendations = recommend_laptops(user_id=int(existing_user_id))
|
83 |
st.subheader(f"Top 5 Recommended Laptops for User {existing_user_id}:")
|
84 |
# for i, row in recommendations.iterrows():
|
85 |
+
recommendations_table = recommendations[['name', 'Price (in Indian Rupees)', 'Type', 'Dedicated Graphic Memory Capacity',
|
86 |
'Processor Brand', 'SSD', 'RAM (in GB)', 'RAM Type', 'Expandable Memory',
|
87 |
'Operating System', 'Touchscreen', 'Screen Size (in inch)', 'Weight (in kg)',
|
88 |
'Refresh Rate', 'screen_resolution', 'company', 'Storage', 'Processor name',
|
89 |
+
'CPU_ranking', 'battery_backup', 'gpu name ', 'gpu_benchmark', 'link']]
|
|
|
90 |
|
91 |
st.table(recommendations_table)
|
92 |
else:
|