Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,13 @@ except Exception as e:
|
|
27 |
# tokenizer = joblib.load('tokenizer.pkl') # Update this to the correct path
|
28 |
|
29 |
# Load the dataset
|
30 |
-
df = pd.read_csv('df1.csv')
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
# Set up the title of the app
|
33 |
st.title('Emotion and Audio Feature-based Song Recommendation System')
|
|
|
27 |
# tokenizer = joblib.load('tokenizer.pkl') # Update this to the correct path
|
28 |
|
29 |
# Load the dataset
|
30 |
+
df = pd.read_csv('df1.csv')
|
31 |
+
#remove null values
|
32 |
+
df = df.dropna()
|
33 |
+
|
34 |
+
# Drop unwanted columns
|
35 |
+
#dropping irrelevant features
|
36 |
+
df = df.drop(['Unnamed: 0', 'lyrics_filename', 'analysis_url', 'track_href',"type","id","uri"], axis = 1)
|
37 |
|
38 |
# Set up the title of the app
|
39 |
st.title('Emotion and Audio Feature-based Song Recommendation System')
|