brendabor commited on
Commit
15b99ac
1 Parent(s): 3e6fe06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -4,7 +4,9 @@ from sklearn.preprocessing import StandardScaler
4
  from sklearn.metrics.pairwise import cosine_similarity
5
 
6
  # Load your dataset
7
- df1 = pd.read_csv('df1.csv') # Replace 'your_dataset.csv' with your actual dataset filename
 
 
8
 
9
  # Copy the content-based recommendation code
10
  audio_features = df1[['danceability', 'energy', 'key', 'loudness', 'mode', 'speechiness',
 
4
  from sklearn.metrics.pairwise import cosine_similarity
5
 
6
  # Load your dataset
7
+ df1 = pd.read_csv('df1.csv')
8
+ df1 = df1.dropna()#drop null values
9
+
10
 
11
  # Copy the content-based recommendation code
12
  audio_features = df1[['danceability', 'energy', 'key', 'loudness', 'mode', 'speechiness',