Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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]
|