rushankg commited on
Commit
7cdbd6f
·
1 Parent(s): 8847810

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ st.title('DiscoverCourses')
32
  selected_course = st.selectbox('Please select a course',course_title_list)
33
 
34
  if st.button('I want more like this!'):
35
- st.write(recommend(np.where((coursedf['ref']+": "+coursedf['title']) == selected_course)[0][0]))
36
  for result in output:
37
  index=np.where(coursedf['title'] == result)[0][0]
38
  course_id=coursedf.iloc[index,0]
 
32
  selected_course = st.selectbox('Please select a course',course_title_list)
33
 
34
  if st.button('I want more like this!'):
35
+ output=recommend(np.where((coursedf['ref']+": "+coursedf['title']) == selected_course)[0][0])
36
  for result in output:
37
  index=np.where(coursedf['title'] == result)[0][0]
38
  course_id=coursedf.iloc[index,0]