dataprincess commited on
Commit
7212304
1 Parent(s): 07019e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -55,7 +55,7 @@ user_type = st.radio("Are you a new user or an existing user?", ('New User', 'Ex
55
  if user_type == 'New User':
56
  # User input for new users
57
  new_user_age = st.slider("Age:", min_value=12, max_value=89, value=25)
58
- new_user_category = st.selectbox("What best describes you:", ['Student', 'Professor', 'Banker', 'Businessman', 'Programmer'])
59
  new_user_gender = st.radio("Gender:", ['Male', 'Female', 'Other'])
60
 
61
  # Button to get recommendations for new users
@@ -90,7 +90,7 @@ if user_type == 'New User':
90
  'Processor Brand', 'SSD', 'RAM (in GB)', 'RAM Type', 'Expandable Memory',
91
  'Operating System', 'Touchscreen', 'Screen Size (in inch)', 'Weight (in kg)',
92
  'Refresh Rate', 'screen_resolution', 'company', 'Storage', 'Processor name',
93
- 'CPU_ranking', 'battery_backup', 'gpu name ', 'gpu_benchmark', 'link']]
94
 
95
 
96
  recommendations_table = recommendations_table.reset_index(drop=True)
@@ -133,7 +133,7 @@ elif user_type == 'Existing User':
133
  'Processor Brand', 'SSD', 'RAM (in GB)', 'RAM Type', 'Expandable Memory',
134
  'Operating System', 'Touchscreen', 'Screen Size (in inch)', 'Weight (in kg)',
135
  'Refresh Rate', 'screen_resolution', 'company', 'Storage', 'Processor name',
136
- 'CPU_ranking', 'battery_backup', 'gpu name ', 'gpu_benchmark', 'link']]
137
 
138
  recommendations_table = recommendations_table.reset_index(drop=True)
139
  st.dataframe(recommendations_table)
 
55
  if user_type == 'New User':
56
  # User input for new users
57
  new_user_age = st.slider("Age:", min_value=12, max_value=89, value=25)
58
+ new_user_category = st.selectbox("What best describes you:", ['Student', 'Professor', 'Banker', 'Businessman', 'Programmer', 'Other'])
59
  new_user_gender = st.radio("Gender:", ['Male', 'Female', 'Other'])
60
 
61
  # Button to get recommendations for new users
 
90
  'Processor Brand', 'SSD', 'RAM (in GB)', 'RAM Type', 'Expandable Memory',
91
  'Operating System', 'Touchscreen', 'Screen Size (in inch)', 'Weight (in kg)',
92
  'Refresh Rate', 'screen_resolution', 'company', 'Storage', 'Processor name',
93
+ 'CPU_ranking', 'battery_backup', 'gpu name ', 'gpu_benchmark']]
94
 
95
 
96
  recommendations_table = recommendations_table.reset_index(drop=True)
 
133
  'Processor Brand', 'SSD', 'RAM (in GB)', 'RAM Type', 'Expandable Memory',
134
  'Operating System', 'Touchscreen', 'Screen Size (in inch)', 'Weight (in kg)',
135
  'Refresh Rate', 'screen_resolution', 'company', 'Storage', 'Processor name',
136
+ 'CPU_ranking', 'battery_backup', 'gpu name ', 'gpu_benchmark']]
137
 
138
  recommendations_table = recommendations_table.reset_index(drop=True)
139
  st.dataframe(recommendations_table)