Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ container = st.container()
|
|
39 |
maincol1, maincol2 = container.columns(2)
|
40 |
st.write('')
|
41 |
|
42 |
-
if maincol1.button('
|
43 |
output=recommend(np.where((coursedf['ref']+": "+coursedf['title']) == selected_course)[0][0])
|
44 |
for result in output:
|
45 |
index=np.where(coursedf['title'] == result)[0][0]
|
@@ -52,7 +52,7 @@ if maincol1.button('Recommend by title',use_container_width=True):
|
|
52 |
st.markdown(link1+" "+link2, unsafe_allow_html=True)
|
53 |
st.divider()
|
54 |
|
55 |
-
if maincol2.button('
|
56 |
index_new=np.where((coursedf['ref']+": "+coursedf['title']) == selected_course)[0][0]
|
57 |
rec_list=coursedf.iloc[index_new,2]
|
58 |
for result in rec_list[1:]:
|
|
|
39 |
maincol1, maincol2 = container.columns(2)
|
40 |
st.write('')
|
41 |
|
42 |
+
if maincol1.button('Discover by title',use_container_width=True):
|
43 |
output=recommend(np.where((coursedf['ref']+": "+coursedf['title']) == selected_course)[0][0])
|
44 |
for result in output:
|
45 |
index=np.where(coursedf['title'] == result)[0][0]
|
|
|
52 |
st.markdown(link1+" "+link2, unsafe_allow_html=True)
|
53 |
st.divider()
|
54 |
|
55 |
+
if maincol2.button('Discover by description',use_container_width=True):
|
56 |
index_new=np.where((coursedf['ref']+": "+coursedf['title']) == selected_course)[0][0]
|
57 |
rec_list=coursedf.iloc[index_new,2]
|
58 |
for result in rec_list[1:]:
|