Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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]['
|
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.")
|