brendabor commited on
Commit
9652cc9
1 Parent(s): 3246224

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,6 +52,6 @@ knn_recs = recommend_knn(song_index_to_recommend)
52
  st.write("KNN Recommendations:")
53
  if not knn_recs.empty:
54
  for index in knn_recs.index:
55
- st.write(f"Song Index: {index}, Title: {df.iloc[index]['title']}, Artist: {df.iloc[index]['artist']}, Score: {knn_recs.loc[index, 'score']}")
56
  else:
57
  st.write("No recommendations found.")
 
52
  st.write("KNN Recommendations:")
53
  if not knn_recs.empty:
54
  for index in knn_recs.index:
55
+ st.write(f"Song Index: {index}, Title: {df.iloc[index]['track_name']}, Artist: {df.iloc[index]['track_artist']}, Score: {knn_recs.loc[index, 'score']}")
56
  else:
57
  st.write("No recommendations found.")