Update app.py
Browse files
app.py
CHANGED
@@ -63,12 +63,12 @@ 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 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
|
73 |
st.table(recommendations_table)
|
74 |
|
@@ -90,6 +90,6 @@ elif user_type == 'Existing User':
|
|
90 |
'CPU_ranking', 'battery_backup', 'gpu name ', 'gpu_benchmark',
|
91 |
'ram_type_tokenized', 'gpu_processor_tokenized', 'link']]
|
92 |
|
93 |
-
|
94 |
else:
|
95 |
st.warning("Please enter a valid user ID.")
|
|
|
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[['Laptop_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',
|
71 |
+
'ram_type_tokenized', 'gpu_processor_tokenized', 'link']]
|
72 |
|
73 |
st.table(recommendations_table)
|
74 |
|
|
|
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:
|
95 |
st.warning("Please enter a valid user ID.")
|