Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,9 +42,6 @@ st.title('KNN Recommender App')
|
|
42 |
# Get song index from user input
|
43 |
song_index_to_recommend = st.number_input('Enter song index:', min_value=0, max_value=len(df)-1, value=0)
|
44 |
|
45 |
-
# Combine emotion and audio features for recommendation
|
46 |
-
# combined_features = np.concatenate([emotion, audio_features_scaled_knn[song_index_to_recommend]])
|
47 |
-
|
48 |
# Get KNN recommendations
|
49 |
knn_recs = recommend_knn(song_index_to_recommend)
|
50 |
|
|
|
42 |
# Get song index from user input
|
43 |
song_index_to_recommend = st.number_input('Enter song index:', min_value=0, max_value=len(df)-1, value=0)
|
44 |
|
|
|
|
|
|
|
45 |
# Get KNN recommendations
|
46 |
knn_recs = recommend_knn(song_index_to_recommend)
|
47 |
|