Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ knn_model = joblib.load('knn_model.joblib')
|
|
12 |
|
13 |
# Load the dataset
|
14 |
df = pd.read_csv('df1.csv')
|
|
|
15 |
|
16 |
# Preprocess for KNN
|
17 |
audio_feature_columns = ['danceability', 'energy', 'key', 'loudness', 'mode', 'speechiness',
|
|
|
12 |
|
13 |
# Load the dataset
|
14 |
df = pd.read_csv('df1.csv')
|
15 |
+
df = df.dropna()
|
16 |
|
17 |
# Preprocess for KNN
|
18 |
audio_feature_columns = ['danceability', 'energy', 'key', 'loudness', 'mode', 'speechiness',
|