rushankg commited on
Commit
bd80b62
·
1 Parent(s): c077474

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -27,4 +27,7 @@ def recommend(coursename):
27
  st.set_page_config(page_title='DiscoverCourses', page_icon=':book:')
28
  st.title('DiscoverCourses')
29
 
30
- selected_course = st.selectbox('Please select a course',course_title_list)
 
 
 
 
27
  st.set_page_config(page_title='DiscoverCourses', page_icon=':book:')
28
  st.title('DiscoverCourses')
29
 
30
+ selected_course = st.selectbox('Please select a course',course_title_list)
31
+
32
+ if st.button('I want more like this!'):
33
+ st.write(recommend(np.where(coursedf['title'] == selected_course)[0][0]))