Anwar11234 commited on
Commit
382ebba
1 Parent(s): d823dd2

fixed error in recommender.py

Browse files
Files changed (1) hide show
  1. recommender.py +1 -1
recommender.py CHANGED
@@ -26,7 +26,7 @@ def recommend(course_data: dict = Body(...)):
26
  # Get the course indices
27
  course_indices = [i[0] for i in sim_scores]
28
 
29
- recommendations = df.iloc[course_indices][['CourseID', 'Title']].to_dict(orient='records')
30
 
31
  return recommendations
32
 
 
26
  # Get the course indices
27
  course_indices = [i[0] for i in sim_scores]
28
 
29
+ recommendations = df.iloc[course_indices][['Id', 'Title']].to_dict(orient='records')
30
 
31
  return recommendations
32