working_frontend

This commit is contained in:
ahmed531998 2023-04-09 20:14:17 +02:00
parent d9970030cb
commit b6a8cb725e
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ def predict():
user.update_interests(user_interests)
new_user_interests = user.get_user_interests()
new_vre_material = pd.concat([vre.db['paper_db'], vre.db['dataset_db']]).reset_index(drop=True)
if (new_user_interests() != old_user_interests or old_vre_material != new_vre_material):
if (new_user_interests != old_user_interests or len(old_vre_material) != len(new_vre_material)):
rec.generate_recommendations(new_user_interests, new_vre_material)
dm.update(state)
action = dm.next_action()