Update main.py
Browse files
main.py
CHANGED
@@ -38,7 +38,7 @@ def play_recomm():
|
|
38 |
x=update_dataset()
|
39 |
st.success('{} New tracks were added to the dataset.'.format(x))
|
40 |
except:
|
41 |
-
st.error("The dataset update failed.
|
42 |
with st.spinner('Getting Recommendations...'):
|
43 |
res,err = playlist_model(st.session_state.p_url,st.session_state.model,st.session_state.genre,st.session_state.artist)
|
44 |
st.session_state.rs=res
|
@@ -139,10 +139,10 @@ if menu == "Homepage":
|
|
139 |
st.write("Sorry, no recommendations found for the given artist.")
|
140 |
else:
|
141 |
st.write("Here are some recommendations for you based on the artist you provided:")
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
|
147 |
if name == 'main':
|
148 |
-
main()
|
|
|
38 |
x=update_dataset()
|
39 |
st.success('{} New tracks were added to the dataset.'.format(x))
|
40 |
except:
|
41 |
+
st.error("The dataset update failed. ")
|
42 |
with st.spinner('Getting Recommendations...'):
|
43 |
res,err = playlist_model(st.session_state.p_url,st.session_state.model,st.session_state.genre,st.session_state.artist)
|
44 |
st.session_state.rs=res
|
|
|
139 |
st.write("Sorry, no recommendations found for the given artist.")
|
140 |
else:
|
141 |
st.write("Here are some recommendations for you based on the artist you provided:")
|
142 |
+
for artist in recommended_artists:
|
143 |
+
st.write("- " + artist)
|
144 |
+
st.write("Hope you enjoy the recommendations!")
|
145 |
+
st.write("Please let us know if you want more recommendations.")
|
146 |
|
147 |
if name == 'main':
|
148 |
+
main()
|