working_frontend

This commit is contained in:
ahmed531998 2023-04-09 20:14:17 +02:00
parent 47e02c5c9d
commit 7e58c32311
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()