Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ selected_course = st.selectbox('Pick a course from the dropdown:',course_title_l
|
|
35 |
container = st.container()
|
36 |
maincol1, maincol2 = container.columns(2)
|
37 |
|
38 |
-
if maincol1.button('Recommend by title'):
|
39 |
output=recommend(np.where((coursedf['ref']+": "+coursedf['title']) == selected_course)[0][0])
|
40 |
for result in output:
|
41 |
index=np.where(coursedf['title'] == result)[0][0]
|
@@ -47,7 +47,7 @@ if maincol1.button('Recommend by title'):
|
|
47 |
st.markdown(link, unsafe_allow_html=True)
|
48 |
st.divider()
|
49 |
|
50 |
-
if maincol2.button('Recommend by description'):
|
51 |
index_new=np.where((coursedf['ref']+": "+coursedf['title']) == selected_course)[0][0]
|
52 |
rec_list=course_df_new.iloc[index_new,2]
|
53 |
for result in rec_list:
|
|
|
35 |
container = st.container()
|
36 |
maincol1, maincol2 = container.columns(2)
|
37 |
|
38 |
+
if maincol1.button('Recommend by title',use_container_width=True):
|
39 |
output=recommend(np.where((coursedf['ref']+": "+coursedf['title']) == selected_course)[0][0])
|
40 |
for result in output:
|
41 |
index=np.where(coursedf['title'] == result)[0][0]
|
|
|
47 |
st.markdown(link, unsafe_allow_html=True)
|
48 |
st.divider()
|
49 |
|
50 |
+
if maincol2.button('Recommend by description',use_container_width=True):
|
51 |
index_new=np.where((coursedf['ref']+": "+coursedf['title']) == selected_course)[0][0]
|
52 |
rec_list=course_df_new.iloc[index_new,2]
|
53 |
for result in rec_list:
|