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